Osman Posted December 9, 2008 Posted December 9, 2008 Hi, I am generating a XML file via XSL stylesheet. I declare output encoding as "ANSI" but my generated XML file encoding is UTF-8. (To check file encoding, I open the xml file with notepad. I select save as from file menu. The encoding field is filled with UTF-8 automatically.) I have added following code in my stylesheet but it does not work. I tried to delete some special letters in Turkish alphabet data in the fields. Then it worked. But I have to use Turkish letters and my file must be ANSI encoding. How can I do that? Thanks in advance. Regards My Entire XSL Stylesheet, may be helpful. <?xml version="1.0" encoding="iso-8859-9"> xmlns:fmp="http://www.filemaker.com/fmpxmlresult" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1" exclude-result-prefixes='fmp' > ASIL 123 Org. Name
comment Posted December 9, 2008 Posted December 9, 2008 I don't think "ANSI" is a valid attribute for XML encoding. I believe you need to use "ISO_8859-9" for the xsl:output (you should probably use "UTF-8" for the xml declaration, but I am not sure it matters a lot). This should ensure that the output document is encoded as ISO_8859-9. However, it will not translate Turkish characters from Unicode to another encoding - it will merely escape them, so that "Ç", for example, will be output as "Ç ;" Try adding an attribute of: disable-output-escaping="yes" to each element that gets data from a field containing Turkish text.
Recommended Posts
This topic is 6191 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now