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

Re: Pango, UTF-8 & Latin1



On Thu, 1 Aug 2002, Cyrille Chepelov wrote:
> Le Thu, Aug 01, 2002, à 10:19:24AM -0500, Lars Clausen a écrit:
> 
> 
>> Well, libxml2 doesn't seem to be doing it for Dia now.  I don't know
>> what's wrong with it.
> 
> libxml2 does the right thing. If you don't have an encoding spec in the
> header of an XML file, then it's UTF-8. If you pass UTF-8 data to libxml
> and don't ask for another encoding spec, you'll get an UTF-8 header. This
> is within spec.

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.

-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?
<?xml version="1.0" encoding="iso-8859-1"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/";><dia:diagramdata><dia:attribute name="background"><dia:color val="#ffffff"/></dia:attribute><dia:attribute name="paper"><dia:composite type="paper"><dia:attribute name="name"><dia:string>#Letter#</dia:string></dia:attribute><dia:attribute name="tmargin"><dia:real val="2.54"/></dia:attribute><dia:attribute name="bmargin"><dia:real val="2.54"/></dia:attribute><dia:attribute name="lmargin"><dia:real val="2.54"/></dia:attribute><dia:attribute name="rmargin"><dia:real val="2.54"/></dia:attribute><dia:attribute name="is_portrait"><dia:boolean val="true"/></dia:attribute><dia:attribute name="scaling"><dia:real val="1"/></dia:attribute><dia:attribute name="fitto"><dia:boolean val="false"/></dia:attribute></dia:composite></dia:attribute><dia:attribute name="grid"><dia:composite type="grid"><dia:attribute name="width_x"><dia:real val="1"/></dia:attribute><dia:attribute name="width_y"><dia:real val="1"/></dia:attribute><dia:attribute name="visible_x"><dia:int val="1"/></dia:attribute><dia:attribute name="visible_y"><dia:int val="1"/></dia:attribute></dia:composite></dia:attribute><dia:attribute name="guides"><dia:composite type="guides"><dia:attribute name="hguides"/><dia:attribute name="vguides"/></dia:composite></dia:attribute></dia:diagramdata><dia:layer name="Background" visible="true"><dia:object type="Standard - Text" version="0" id="O0"><dia:attribute name="obj_pos"><dia:point val="6,4"/></dia:attribute><dia:attribute name="obj_bb"><dia:rectangle val="4.1,3.15;6.05,4.3"/></dia:attribute><dia:attribute name="text"><dia:composite type="text"><dia:attribute name="string"><dia:string>#Æblegrød#</dia:string></dia:attribute><dia:attribute name="font"><dia:font family="Sans" style="0"/></dia:attribute><dia:attribute name="height"><dia:real val="0.8"/></dia:attribute><dia:attribute name="pos"><dia:point val="6,4"/></dia:attribute><dia:attribute name="color"><dia:color val="#000000"/></dia:attribute><dia:attribute name="alignment"><dia:enum val="2"/></dia:attribute></dia:composite></dia:attribute></dia:object></dia:layer></dia:diagram>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK