| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		bywuu
 
 
  Joined: 04 Aug 2011 Posts: 29
 
  | 
		
			
				 Posted: Wed Oct 19, 2011 9:30 am    Post subject: Question about the Arabic language | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		bywuu
 
 
  Joined: 04 Aug 2011 Posts: 29
 
  | 
		
			
				 Posted: Thu Oct 20, 2011 6:21 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				| Any suggestion? | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		pz
 
 
  Joined: 12 Mar 2004 Posts: 1161
 
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		bywuu
 
 
  Joined: 04 Aug 2011 Posts: 29
 
  | 
		
			
				 Posted: Thu Oct 20, 2011 9:28 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		pz
 
 
  Joined: 12 Mar 2004 Posts: 1161
 
  | 
		
			
				 Posted: Thu Oct 20, 2011 9:53 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		 |