Change default XML encoding

Wednesday, 9 May 2012 · 2 messages
GP
Guillaume Perchais9 May 2012 15:40 #

Hello,

I am using BaseX to scan XML files, and most files are using implicitely the ISO-8859-15 encoding. Unfortunately, it seems that the internal XML parser is using by default UTF-8 encoding. This doesn't seem to be specified in the configuration files, or GUI properties.

Is there a way to force the internal parser to use another encoding?

Many thanks,

Guillaume

CG
Christian Grün9 May 2012 18:18 #

Dear Guillaume,

if a document contains no XML declaration, the XML specification assumes UTF8 as default encoding, which is why is documents with another encoding will be declared as non-wellformed. As there is no possibility of overriding this default, you'll have to convert your documents in advance, or add an appropriate XML declaration.

Sorry for that, Christian

Quoted text · Guillaume Perchais · 23 lines
On Wed, May 9, 2012 at 3:40 PM, Guillaume Perchais <guillaume.perchais at gmail.com> wrote: > > Hello, > > I am using BaseX to scan XML files, and most files are using implicitely > the ISO-8859-15 encoding. > Unfortunately, it seems that the internal XML parser is using by default > UTF-8 encoding. > This doesn't seem to be specified in the configuration files, or GUI > properties. > > Is there a way to force the internal parser to use another encoding? > > Many thanks, > > Guillaume > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery