Re: Save files with correct character set



On Thu, 22 Mar 2012 00:58:01 +0100
Spazzatura.Live <kharhonte hotmail com> wrote:
> I'm trying to save the content of a Glib::ustring to a file. I tried 
> using the Glib::file_set_contents but it uses the std::string, and so
> it writes a non-unicode file.

That's wrong.  The std::string object will hold whatever encoding you
put in it.  std::string objects just hold octets.

Chris


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