Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] get encoding of an old xsd-file

Raphael Schnuck

2005-07-04


The new files must have the same encoding. And so I think it's not the
best but a solution.

Raffa

Michael Kay schrieb:
> A highly dangerous solution, I think, since there is no particular reason
> why the encoding of the new file should be the same as the old.
>
> Michael Kay
> http://www.saxonica.com/
>
>
>
>
>>-----Original Message-----
>>From: Raphael Schnuck [mailto:raffa@(protected)]
>>Sent: 01 July 2005 13:38
>>To: Michael Kay; 'Bradley S. Huffman'
>>Cc: jdom-interest@(protected)
>>Subject: Re: [jdom-interest] get encoding of an old xsd-file
>>
>>I solved the problem on another way. I just get the first
>>line out of my
>>old file and replace the first line of the new file with it. Not the
>>best solution but it works.
>>
>>Raffa
>>
>>Michael Kay schrieb:
>>
>>>>>i just have a problem. i want to find out the encoding of an old
>>>>>xsd-file. but i don't know how.
>>>
>>>
>>>In general, if you don't know the encoding of a file then
>>
>>there is no way to
>>
>>>find out. For example there is no way for a machine to tell
>>
>>the difference
>>
>>>between a file in iso-8859-1 and one in iso-8859-2. A human
>>
>>being can do
>>
>>>better, because even in a schema, accented letters are
>>
>>likely to appear in
>>
>>>the middle of words that make sense in some written
>>
>>language. So you just
>>
>>>have to try different possibilities and see if they make sense.
>>>
>>>Michael Kay
>>>http://www.saxonica.com/
>>>
>>>
>>>
>>>
>>
>
>
>
>
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.