Thursday, March 29, 2012

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

?"Startdate";"Starttime";"Enddate";"Endtime";"Comment";"Project";"Task";"Project-comment";
"3/29/12";"11:55 AM";"Until now...";"";"QaE???";"Your Project";"Your Task!";"";
"3/29/12";"07:03 AM";"3/29/12";"11:54 AM";"????????????????????";"Your Project";"Your Task!";"";
Allright it works now!
Thank you for poiting out to me the Byte Order Mark.

I've added "out.write('\ufeff');" to write the Byte Order Mark and you can see in the attachment the export now works fine! :)

This is my code now:

   out = new OutputStreamWriter(
new FileOutputStream(file), "UTF-8"
   );
   out.write('\ufeff');
   out.write(result.toString());
   out.flush();

Op donderdag 29 maart 2012 14:11:01 UTC+2 schreef Dirk Vranckaert het volgende:
Oups, forgot the file ;)

But update:
I was wrong, ö ë é
are not working either!

File is now attached! :)

--
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