Re: Pango warning: "Invalid UTF-8 string"



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Kaeppler <nospam digitalraid com> writes:

> Roger Leigh wrote:
>> Are you *sure* the string is UTF-8 and that the umlaut is not an
>> 8-bit Latin (ISO-8859-n) character?
>
> It's an ordinary std::string. I also tried to 
> convert it to a Glib::ustring but that didn't help.
>
>> Where is the umlaut coming from?
>
> It's a filename, an std::string returned by 
> Gnome::Vfs::FileInfo::get_name().

You want the glibmm equivalent of g_filename_to_utf8.

You might also want to consider using a UTF-8 locale (de_DE.UTF-8) and
UTF-8 filenames on disc.


Regards,
Roger

- -- 
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/>

iD8DBQFC2rNyVcFcaSW/uEgRAtflAKCQ8m12TaqA9YjnOd2c1nIpz9xk5wCfbNTw
LHeh5i32FIPGZkfHEuM3YrE=
=IycB
-----END PGP SIGNATURE-----



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