Thursday, March 29, 2012

[android-developers] Re: Writing files in UTF-8

Ooh yeah, I will have a look tomorrow for the UTF-8.

But the question marks in the in the file i attached are because google groups did not get it right the document... Locally it works and I can send it through mail without issues.

Kr,

Dirk

Op donderdag 29 maart 2012 14:43:33 UTC+2 schreef Remote Red het volgende:
> I've added "out.write('\ufeff');" to write the Byte Order Mark

That is not the bom for utf-8. You wrote the bom for UTF-16.

http://en.wikipedia.org/wiki/Byte_order_mark

The bom for utf-8 is 0xEF, 0xBB, 0xBF.

> ... and you can
> see in the attachment the export now works fine! :)

Those attachment have no bom and do not contain characters like
€å"€å"€å"€à €à €à €ç¼€ç¼€ç¼€ç¼€ç¼€ç¼€ç¼€Ì€Ì€Ì€Ì€Ì€Ì€
but a lot of questionmarks line.
?????????????????????

You are not done before it works with the right bom.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment