Re: Save files with correct character set



Right, I forgot... My locale is utf8...

As "to_codeset" variable should I just use: "iso-8859-15"?

Il 22/03/2012 22:20, Chris Vine ha scritto:
On Thu, 22 Mar 2012 22:07:03 +0100
Spazzatura.Live<kharhonte hotmail com>  wrote:
It doesn't work:
      Saving file failed: Invalid byte sequence in conversion input

Using: Glib::file_set_contents(filename,
Glib::locale_from_utf8(TextView.get_buffer()->get_text()));
OK, that means that ISO-8859-15 is not your locale encoding.  Use
Glib::convert().

Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]