Display hindi words using UNICODE for brew 3.1.5 | developer.brewmp.com Display hindi words using UNICODE for brew 3.1.5 | developer.brewmp.com

Developer

Display hindi words using UNICODE for brew 3.1.5

Forums:

Hi

 

I want to display hindi words in the handset which supports hindi wordings but when i do that it doesnt disppaly the desired result in the handset.

I am trying like this

where "E0 B2 85 20" is the unicode vale for hindi

IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, (AECHAR*)"E0 B2 85 20", -1, rc.x, rc.y,&rc, IDF_TEXT_TRANSPARENT |IDF_ALIGN_MIDDLE);       

 

but i am not getting the result, its displaying the same unicode vale E0 B2 85 20 in the handset.

 

what would be the approach in brew 3.1.5 to display hindi wording by using unicode, can anyone help with a code snippet???

 

Regards

Gautam

 

 

you are giving hex value directly. brew would onsider it ASCII.
 
AECHAR wstr = 0xE0;
 
then try displaying wstr using IDisplay_DrawText();

you are giving hex value directly. brew would onsider it ASCII.
 
AECHAR wstr = 0xE0;
 
then try displaying wstr using IDisplay_DrawText();

HI Shivendra
I tried displaying it, it doesnt display anything , i mean (AECHAR*)"0xe0a485 0xe0a487" it display only vale 7 value
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, (AECHAR*)"0xe0a485 0xe0a487", -1, rc.x, rc.y,&rc, IDF_TEXT_TRANSPARENT |IDF_ALIGN_MIDDLE);       
output is only 7
is there anything else i need to do?????
 
PLease help
 
 

HI Shivendra
I tried displaying it, it doesnt display anything , i mean (AECHAR*)"0xe0a485 0xe0a487" it display only vale 7 value
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, (AECHAR*)"0xe0a485 0xe0a487", -1, rc.x, rc.y,&rc, IDF_TEXT_TRANSPARENT |IDF_ALIGN_MIDDLE);       
output is only 7
is there anything else i need to do?????
 
PLease help
 
 

HI Shivendra 
 
Please reply, wit code snippet
 
Regards
Gautam
 
 

HI Shivendra 
 
Please reply, wit code snippet
 
Regards
Gautam
 
 

1. if u assign anything in ""(double quotes), it is considered as string.
2. 0xE0 is no hindi charecter. refer here : http://unicode.org/charts/PDF/U0900.pdf
    Hindi devangiri starts from hex: 0x900
3. 0x904 is AA(hindi)
try like this:-
AECHAR wStr[3];
wStr[0] = 0x904;
wStr[1] = 0;
 
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, wStr, -1, 0, 0, NULL, IDF_TEXT_TRANSPARENT |IDF_ALIGN_MIDDLE|IDF_ALIGN_CENTER); 
 

1. if u assign anything in ""(double quotes), it is considered as string.
2. 0xE0 is no hindi charecter. refer here : http://unicode.org/charts/PDF/U0900.pdf
    Hindi devangiri starts from hex: 0x900
3. 0x904 is AA(hindi)
try like this:-
AECHAR wStr[3];
wStr[0] = 0x904;
wStr[1] = 0;
 
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, wStr, -1, 0, 0, NULL, IDF_TEXT_TRANSPARENT |IDF_ALIGN_MIDDLE|IDF_ALIGN_CENTER); 
 

Thanks for sharing this information.

Thanks for sharing this information.