Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

hi, i have a phone that suports both formats(unicode and isolation1).i'm developing an application in english.
What format should i use first(unicode or isolation1) and why (memory and so on..).

thank you

BREW is unicode UTF16 system. If your target users are english or european language audience then you can get by with ISOLATIN1 encoding.
ISOLATIN1 will use one byte per character whereas UTF16 uses 2 bytes per character.
In future if you ever decide to port your application to unicode language then you will have lot more work to do if you implement your current version in ISOLATIN1.

BREW is unicode UTF16 system. If your target users are english or european language audience then you can get by with ISOLATIN1 encoding.
ISOLATIN1 will use one byte per character whereas UTF16 uses 2 bytes per character.
In future if you ever decide to port your application to unicode language then you will have lot more work to do if you implement your current version in ISOLATIN1.

We've always used Unicode instead of ISOLATIN1. The memory hit isn't that big, and all of the BREW controls take Unicode strings.
Ruben, I think you mean that BREW uses UCS-2. UTF16 is an encoding scheme that allows you to represent Unicode characters that are wider than 16 bits as two 16 bit characters.

We've always used Unicode instead of ISOLATIN1. The memory hit isn't that big, and all of the BREW controls take Unicode strings.
Ruben, I think you mean that BREW uses UCS-2. UTF16 is an encoding scheme that allows you to represent Unicode characters that are wider than 16 bits as two 16 bit characters.

Quote:I think you mean that BREW uses UCS-2. UTF16 is an encoding scheme that allows you to represent Unicode characters that are wider than 16 bits as two 16 bit characters.
Classic discussion topic on unicode. UCS2 standard is unicode solution from ISO group whereas UTF16 is from Unicode.org group. UTF16 can even support 32bit wide data(UCS4) using surrogates. On general purpose UTF16 and UCS2 are used interchangbly, but strictly speaking UTF16 and UCS2 are not same.
ruben

Quote:I think you mean that BREW uses UCS-2. UTF16 is an encoding scheme that allows you to represent Unicode characters that are wider than 16 bits as two 16 bit characters.
Classic discussion topic on unicode. UCS2 standard is unicode solution from ISO group whereas UTF16 is from Unicode.org group. UTF16 can even support 32bit wide data(UCS4) using surrogates. On general purpose UTF16 and UCS2 are used interchangbly, but strictly speaking UTF16 and UCS2 are not same.
ruben