On Thu, 1 Aug 2002, Cyrille Chepelov wrote:
> Le Thu, Aug 01, 2002, à 12:06:51PM -0500, Lars Clausen a écrit:
>> 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.
>
>
> I don't have an explanation. I have just a simple fact: I CVS updated,
> compiled, loaded your file. Save for the ugly font (my Pango is
> ill-configured, I need to clear the defoma caches I think), I think the
> contents match what you've typed there (you can see the window in the
> lower right corner of the screenshot I sent you privately).
Arrrr, my bad. I forgot that my Emacs now does UTF-8 by default, so those
were UFT-8 things in a supposed latin-1 diagram. Once I made them actual
latin-1, they worked. (Though I updated to libxml1.23 at the same time,
which might or might not have helped.) I'm guessing something in the mail
transport made it correct Latin-1 on your side, too.
-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?