Aechar | developer.brewmp.com Aechar | developer.brewmp.com

Developer

Aechar

Forums:

Anyone knows if BREW's AECHAR is compatible with JAVA "char".

Internally, Java's char is a UTF-16 deal, is BREW AECHAR a UTF-16 deal too?

Thanks...

on AEE.h you will find:
typedef uint16 AECHAR;
It means it has the 16 bits necessary to implement UNICODE 1.1.
But regarding displaying it correctly, it'll depend on the device...
For instance, on Latin-Based-Language devices the AECHAR will get displayed as ISO-LATIN char set (\u0000 to \u00FF).
On US devices you will probably see support only for ASC char set (\u0000 to \u001F).
There some MACRO functions on BREW that handles UTF8:
UTF8TOWSTR()
WSTRTOUTF8()
But I'm not sure if some MACROs such as WSTRLOWER() or WSTRUPPER() would treat UNICODE correctly... I would suggest you to test it.
I suspect it won't take ô to Ô or É to é...

on AEE.h you will find:
typedef uint16 AECHAR;
It means it has the 16 bits necessary to implement UNICODE 1.1.
But regarding displaying it correctly, it'll depend on the device...
For instance, on Latin-Based-Language devices the AECHAR will get displayed as ISO-LATIN char set (\u0000 to \u00FF).
On US devices you will probably see support only for ASC char set (\u0000 to \u001F).
There some MACRO functions on BREW that handles UTF8:
UTF8TOWSTR()
WSTRTOUTF8()
But I'm not sure if some MACROs such as WSTRLOWER() or WSTRUPPER() would treat UNICODE correctly... I would suggest you to test it.
I suspect it won't take ô to Ô or É to é...