 |
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
jbladox
Joined: 29 Jul 2008 Posts: 24
|
Posted: Thu Jul 23, 2009 7:09 pm Post subject: Display @ with display_text |
|
|
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 |
|
 |
pz Guest
|
Posted: Tue Jul 28, 2009 7:24 am Post subject: |
|
|
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 |
|
 |
|
|
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
|