Re: set_markup() UTF-8 encoding problems
- From: "John Hobbs" <john velvetcache org>
- To: "Murray Cumming" <murrayc murrayc com>
- Cc: GTKmm List <gtkmm-list gnome org>
- Subject: Re: set_markup() UTF-8 encoding problems
- Date: Mon, 9 Jun 2008 14:06:11 -0500
This was a mistake on my part of how I was reading the file. Sorry about that.
- John
On Mon, Jun 9, 2008 at 3:04 AM, Murray Cumming <murrayc murrayc com> wrote:
> 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]