Re: Pango warning: "Invalid UTF-8 string"
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: gtkmm-list gnome org
- Subject: Re: Pango warning: "Invalid UTF-8 string"
- Date: Sun, 17 Jul 2005 22:01:14 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthias Kaeppler <nospam digitalraid com> writes:
> Roger Leigh wrote:
>>> It's a filename, an std::string returned by
>>> Gnome::Vfs::FileInfo::get_name().
>> You want the glibmm equivalent of g_filename_to_utf8.
>
> Sweet, that did the job. Thanks. It's called
> Glib::locale_to_utf8().
There's also a Glib::filename_to_utf8(). I'm not sure what the
differences are, though. Perhaps you can have different locale and
disc encodings?
>> You might also want to consider using a UTF-8 locale (de_DE.UTF-8) and
>> UTF-8 filenames on disc.
>
> I also considered that, but wasn't sure if I
> really need it. What exactly would be the
> advantage of using UTF-8 over an extended ASCII
> charset?
Well, you can use all those other neat characters, like symbols,
proper „quotes”.
> I have the feeling that other programs may have
> trouble with widebyte charsets (for example, if I
> send UTF-8 encoded in X-Chat, people using MS
> Windows can't read my umlauts either).
It works fine for me. That's probably an issue with the Windows IRC
client.
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFC2scaVcFcaSW/uEgRAom7AKDn15GUxqcyf8VjRVS22mBrAODT0QCgiuFZ
ErEK59V6o899Zg/SoJMV6Io=
=qoPv
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]