CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ASCII problems? @

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
suru-dis



Joined: 29 Apr 2004
Posts: 1

View user's profile Send private message

ASCII problems? @
PostPosted: Thu Apr 29, 2004 6:01 am     Reply with quote

Hi All!

Hi All!
The problem was not related to the compiler, the problem was that
my GSM-modem used a different character set.

Sorry!

Original Message...

I am trying to use the @ character but it becomes a spanish n (�)
I am doing the following:
printf("suru\x40nira.se\r");
64 dec == @ (ASCII)

What is it that I am missing?

I am sending the character to a serial port.
I am using version CCSC file version 3.1.0.30

Kind Regards,
Suru Dissanaike


Last edited by suru-dis on Thu Apr 29, 2004 8:45 am; edited 1 time in total
Couch



Joined: 20 Jan 2004
Posts: 9
Location: Ottawa, Ontario Canada

View user's profile Send private message

try this
PostPosted: Thu Apr 29, 2004 8:27 am     Reply with quote

Try :

Code:
printf("suru%C nira.se\r",64);


This should format 64dec into an ascii character.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group