File I/O in UTF8
- From: Arun <codito codito in>
- To: gnome-shell-list gnome org
- Subject: File I/O in UTF8
- Date: Tue, 6 Sep 2011 08:39:50 +0530
Hello,
What is the recommended API to use to read/write file as UTF8? I
have included screenshots of specific issue we are facing [2],
[3].
I am hitting bug 658312[1] with GLib.file_set_contents. Not able to
read the file saved with this API. Both GLib.file_get_contents or
Shell.get_file_contents_utf8_sync throw a `Invalid byte sequence` error.
[1]: https://bugzilla.gnome.org/show_bug.cgi?id=658312
[2]: http://ompldr.org/vYTU1dg/utf8_gjs.jpg
[3]: http://ompldr.org/vYTU2cg/utf8_filediff.jpg
Thanks,
Arun
Gnome-shell-pomodoro extension: http://github.com/codito/gnome-shell-pomodoro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]