Re: Problems with UTF8
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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with UTF8
Trevor DeVore a écrit : On Feb 29, 2008, at 1:04 PM, GIRARD Damien wrote: I want to store texts in UTF8. But, I have a problem, when I do that function: unidecode(uniencode("eéàèe"),UTF8), all accented characters diseapear. If I let them as UTF16, this work, accented characters are returned. It is a Runrev bug ? or maybe I did something wrong ? Hi Damien, Are you sure the accented characters are disappearing or do they just appear as junk in the rev message box (or field)? I ask because once you encode to UTF8 you can't necessarily display the text in Rev accurately. What happens if you first encode the text as UTF8 and then decode to UTF16 and assign it to the unicodeText property of a field? put unidecode(uniencode("eéàèe"),UTF8) into theUTF8Text set the unicodeText of field 1 to uniencode(theUTF8Text, "UTF8") Do the characters look right then? Regards, 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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with UTF8
On Feb 29, 2008, at 1:04 PM, GIRARD Damien wrote: I want to store texts in UTF8. But, I have a problem, when I do that function: unidecode(uniencode("eéàèe"),UTF8), all accented characters diseapear. If I let them as UTF16, this work, accented characters are returned. It is a Runrev bug ? or maybe I did something wrong ? Hi Damien, Are you sure the accented characters are disappearing or do they just appear as junk in the rev message box (or field)? I ask because once you encode to UTF8 you can't necessarily display the text in Rev accurately. What happens if you first encode the text as UTF8 and then decode to UTF16 and assign it to the unicodeText property of a field? put unidecode(uniencode("eéàèe"),UTF8) into theUTF8Text set the unicodeText of field 1 to uniencode(theUTF8Text, "UTF8") Do the characters look right then? Regards, -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com-www.screensteps.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution