Re: Glib::ustring, error while reading an utf-8 encoded file

2009-01-21 Thread Murray Cumming
On Tue, 2009-01-20 at 14:56 +0100, Bastien Dalla Piazza wrote: > > 1: as-is: "First line: plain text." > 1: through Glib::ustring: "First line: plain text." > 2: as-is: "deuxième ligne: des accents ici et là..." You are lucky that that worked. It's unlikely to work with multi-byte UTF-8 character

Glib::ustring, error while reading an utf-8 encoded file

2009-01-20 Thread Bastien Dalla Piazza
Hi everybody, I don't have experience about charset issues so I tried the following to experiment: (it's in C++ using glibmm and giomm but I guess the problem is not related to that, it's just I don't understand something.) * #include #include #include #incl