bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display @ with display_text

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
jbladox



Joined: 29 Jul 2008
Posts: 24

PostPosted: Thu Jul 23, 2009 7:09 pm    Post subject: Display @ with display_text Reply with quote

Hello,

I have noticed that display_text interprets each byte by the 7-bit encoding value (with the 8th bit set to 0).
I am using display_text to show some text that contains a '@' symbol. @ is the 0x00 in the standard, so when display_text gets to this byte, it thinks it is the end of the display string and doesn't show anymore.

Also, if I hardcode '@', it displays the upsidedown exclamation mark (which is correct according to the standard).


Code:

u8 PROGMEM text[] = "email@server.com";

void display() {
  display_text(text, NULL);
}


Please help.
Thanks,
J
Back to top
View user's profile Send private message
pz
Guest





PostPosted: Tue Jul 28, 2009 7:24 am    Post subject: Reply with quote

Yes, there is conflict between \0 being string terminator and also '@' in GSM alphabet.

You have 2 options:
- use STRING_SLV coding, i.e. prefix it with 'STRING_SLV', DCS, text_len, text
- use stk_cmd() and implement it as you wish
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
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