On Tue, 2004-03-02 at 20:04, Stefan Geelen wrote: > Hi, > > I build a webpage with default charset=ISO-8859-1" encoding. > > I need to include another .xml file built in utf-16 encoding: > > <xi:include href="Example_box.mill" parse="text" > encoding="UTF-16"> > <xi:fallback> > <p>Example currently unavailable</p> > </xi:fallback> > </xi:include> > > The result is : > ... > ÿþ<�?�x�m�l� > �v�e�r�s�i�o�n�=�"�1�.�0�"� > �e�n�c�o�d�i�n�g�=�"�U�T�F�-�1�6�"�?�>� � > > �<�m�l�:�d�o�c�u�m�e�n�t�s� > �x�m�l�n�s�:�m�l�=�"�h�t�t�p�:�/�/&# > ... > > Appareantly the file is not recognized as UTF-16. > > Note: UTF-8 seems to work.
I just checked the XIncludeTransformer source and it doesn't seem like the encoding attribute is implemented, which explains why it's not working. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
