Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can not change XML Output File Encoding

Featured Replies

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

		

	  

	  

	  

		  

			

			  

			  

			  

			  

			  

			  

			  

			  

				

				

				

				

				

				

				

				

				

			  

			

		  

	  

	  

	  

	



	



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.

  • Author

thanks, I will try it now.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.