Output text file with ANSI encoding

xslt, xslt-1.0, xslt-2.0

Solution

What is commonly called ANSI is in English-speaking environments technically "Windows-1252". You can try that in place of "us-ascii".

Problem

I have XML file, which need to be converted as text file with encoding ANSI. I tried the followings, but I am getting only the UTF-8 encoding: ``` <xsl:output method="text"/> <xsl:output method="text" encoding="us-ascii"/> <xsl:output method="text" encoding="us-ascii" method="text/plain"/> ``` Is there anyway to get the text file with ANSI encoding?

Original source