Problems with UTF8

Mark Smith mark at maseurope.net
Sat Mar 1 06:40:05 EST 2008


Damien, if I understand things correctly, you shouldn't have any  
issues with endianness when working with UTF8.

Endianness will only affect you when you deal with unicode (UTF16)  
from outside your system, because it could be UTF16BE or UTF16LE, and  
as far as I can tell, Rev always treats unicode strings as having the  
endianness of the the system it's running on, so it may be necessary  
to swap the pairs of bytes.

  Best,

Mark



On 1 Mar 2008, at 11:21, GIRARD Damien wrote:

> Thanks Trevor, I read in the 2.9 Beta 11 documentation that Runrev  
> handle fine UTF16 but not UTF8.
> And your solution permit to solve the problem, accented characters  
> are now rendered properly. This confirm the new documentation.
>
> I will investigate further in order to solve the endianess issues.  
> (but it is a bit hard to do some test without a PowerPC computer).
>
> Regards,
>
> Damien




More information about the use-livecode mailing list