[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: set_markup() UTF-8 encoding problems
- From: Murray Cumming <murrayc murrayc com>
- To: John Hobbs <john velvetcache org>
- Cc: GTKmm List <gtkmm-list gnome org>
- Subject: Re: set_markup() UTF-8 encoding problems
- Date: Mon, 09 Jun 2008 10:04:46 +0200
On Fri, 2008-06-06 at 13:29 -0500, John Hobbs wrote:
> Hello,
>
> I have an app that opens a text file with content marked up with
> Pango, then puts that text in a label with set_markup.
>
> My problem is that sometime it errors out with:
> Gtk-WARNING **: Failed to set text from markup due to error parsing
> markup: Error on line 11 char 2: Invalid UTF-8 encoded text - not
> valid '[markup text here]'.
>
> The weird thing is it isn't consistent. The same thing tried a few
> times in a row will yield mostly successful, with an error every 5 or
> so tries, though the interval is not consistent either.
>
> Anyone have any ideas?
Could you provide a little test case in bugzilla, please? Maybe
something in gtkmm is giving GTK+ a number of characters instead of a
number of bytes.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]