This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to change xml ENCODING dynamicly
- From: Jarno dot Elovirta at nokia dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 27 Mar 2002 09:54:40 +0200
- Subject: RE: [xsl] how to change xml ENCODING dynamicly
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
> I have a xml,just like:
>
> <?xml version="1.0" encoding="gb2312"?>
> <root>
> <a>abc </a>
> <b>ddd</b>
> <c>cccc</c>
> </root>
>
> and in the client,I use a xsl and html to let users change the xml's
> data. and then I need submit to a jsp file. but,when I saved, the xml
> is lost something! It lost's encoding info.... just like this:
>
> <?xml version="1.0"?>
> <root>
> <a>abc </a>
> <b>ddd</b>
> <c>cccc</c>
> </root>
> what should I do before I submit it?
> Can anybody tell me? thank u a lot!!
It hasn't "lost" it's encoding, but rather is using the default one, UTF-8.
Santtu
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list