Re: Pango, UTF-8 & Latin1



On Thu, 1 Aug 2002, Alejandro Aguilar Sierra wrote:
Then explain to me why it thinks that the attached diagram is UTF-8 and
misparses the latin1 chars.  Either the encoding I typed in is illegal,
in which case it should give at least a warning, or something deeper is
wrong.

With dia0.90+cvs, when you type ñ (\~n), dia doesn't display it an report
this error on console:
** (dia:416): WARNING **: Invalid UTF8 string passed to
pango_layout_set_text()
What is annoying is that Latin1 coincides almost exactly with Unicode
0080, so there should not be any problem.

Ah, unfortunately almost doesn't work for computers.  We don't yet have a
way to convert input from whatever encoding is used locally to UTF-8.  It's
the Next Big Thing.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



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