UTF-8 Encode under Windws/Linux/Unix


I have a function that write a file.
But I have problem with understand the UTF-8 concept on glibmm.

When and where I use Glib::filename_from_utf8()?
I thinks windows "have" a UTF8 filesystem and Linux/Unix don't have that.

I have made that so:
 Glib::ustring filename;
 #ifdef OS_WINDOWS
   write(filename.c_str(), data);
   write((Glib::filename_from_utf8(filename)).c_str(), data);

Is that right?

Exists a good Tutorial over the programming with utf8?


Attachment: pgpGiA4NHBXBd.pgp
Description: PGP signature

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