Re: Save files with correct character set
- From: Chris Vine <chris cvine freeserve co uk>
- To: "Spazzatura.Live" <kharhonte hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Save files with correct character set
- Date: Thu, 22 Mar 2012 13:43:48 +0000
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]