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 

Question about the Arabic language

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



Joined: 04 Aug 2011
Posts: 29

PostPosted: Wed Oct 19, 2011 9:30 am    Post subject: Question about the Arabic language Reply with quote

Hi,
now I have this "پاسورډ" string it means "password" and I tried:
Code:

lc_char PROGMEM lc_PASSWORD[] =
{
    LC_EN ("PASSWORD")
    LC_AR ("پاسورډ")
    LC_END
};
void turbo_handler (u8 action, void * data)
{
    switch (action)
        {
        case ACTION_APP_INIT:
            set_proc_8 (PROC_8_LANGUAGE, LC_ARABIC);

            break;
...
...
...

but I got worng result,so seems i should make it like:
LC_RU ("\204\10\23\200\4\35\4\60\4\101\4\102\4\100\4\76\4\71\4\72\4\60")
but how to transform it for arabic?And I know the \23 means the length,but what is the \4 mean?There are many\4 for RU?

Many thanks!


Last edited by bywuu on Thu Oct 20, 2011 7:10 am; edited 1 time in total
Back to top
View user's profile Send private message
bywuu



Joined: 04 Aug 2011
Posts: 29

PostPosted: Thu Oct 20, 2011 6:21 am    Post subject: Reply with quote

Any suggestion?
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Thu Oct 20, 2011 9:05 am    Post subject: Reply with quote

http://bladox.com/forum/viewtopic.php?t=2199
Back to top
View user's profile Send private message
bywuu



Joined: 04 Aug 2011
Posts: 29

PostPosted: Thu Oct 20, 2011 9:28 am    Post subject: Reply with quote

yes,I've seen this,but I still don't know how to make the "پاسورډ" into "\204\10\xx\200\x\xx\x\xx\x\xx" this format?
Can you explain more about this?
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Thu Oct 20, 2011 9:53 am    Post subject: Reply with quote

Have you seen the http://bladox.com/devel-docs/group__api__i18n.html ?

As written in the post "and replaced the "\4\42\4\100\4\65\4\62\4\76\4\63\4\60" part with unicode escape characters for Arabic language using FE unicode code page", google UCS2 format.
Back to top
View user's profile Send private message
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