Home > Forum > Tips&Tricks > How to export xml file using UTF-8 encoding?

How to export xml file using UTF-8 encoding?
0

MVP

I'd add here that in previous versions this action didn't exist.
You could use a Add Attachment action, and inside an SQL query it should go like this if i remember correctly:

SELECT CONVERT(VARBINARY(MAX), 'hello world' COLLATE Latin1_General_100_CI_AS_SC_UTF8) AS Content, 'file1.txt' AS FileName;

in case of older compatibility level / sql server version change varbinary(max) to image.

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.