Subject: Re: [xsl] (Auto-)detecting which XML encoding is necessary/required ? From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: Thu, 27 Dec 2007 17:56:47 +0000 |
>>>>> "Ben" == Ben Stover <bxstover@xxxxxxxxxxx> writes: Ben> Sometimes the situation occurs that an XML document does not Ben> fit to its own encoding setting in the first line. Is there Ben> a way to find out the best/necessary/required encoding Ben> setting for an XML doc resp. what I have to write in the Ben> first line: Ben> <?xml version="1.0" encoding="iso-8859-1"?> Ben> or Ben> <?xml version="1.0" encoding="UTF-8"?> Ben> or simply Ben> <?xml version="1.0"?> Just write: <xsl:output method="xml" encoding="UTF-8"/> and the XSLT processor will ensure both that the correct XML declaration is written, and that the document is produced in the correct encoding. -- Colin Adams Preston Lancashire
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] (Auto-)detecting which XML en, Ben Stover | Thread | [xsl] Sort By Multiple Values?, Wei, Alice Ju-Hsuan |
Re: [xsl] xalan and replace "regex", Matthew L. Avizinis | Date | RE: [xsl] xalan and replace "regex", Michael Kay |
Month |