<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>XML produced by Infopath form always written in 1252 Western European... need UTF-8</title><link>https://www.infopathdev.com:443/forums/thread/41360.aspx</link><pubDate>Wed, 06 May 2009 22:23:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41360</guid><dc:creator>shland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41360</wfw:commentRss><description>&lt;p&gt;Clarification (original question below):&amp;nbsp; in&amp;nbsp; &lt;font size="2"&gt;FormEvents_Save&lt;/font&gt;, if I use the e.&lt;font size="2"&gt;PerformSaveOperation to save the xml to a file, it saves as 1252 Western European encoding, which is causing problems in downstream processing systems.&amp;nbsp; We need the file to save as UTF-8 encoding.&amp;nbsp; The only way I&amp;#39;ve found to do it is to use an xmlwriter or something to write the xml manually, but this requires a Full-trust form, as far as I know.&amp;nbsp; &lt;br /&gt;&lt;/font&gt;&lt;br /&gt;Any other way to get infopath to save in utf-8 by default, using the standard save method?&lt;br /&gt;&lt;br /&gt;*************************************************************&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, if my infopath form data is saved to disk, even though we have a UTF-8 dec in the xml (&lt;font size="1"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&amp;lt;?&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;xml&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#ff0000;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#ff0000;"&gt;version&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;1.0&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#ff0000;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#ff0000;"&gt;encoding&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;UTF-8&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;), the file is actually saved to disk written&amp;nbsp;with 1252 Western European encoding.&lt;br /&gt;&lt;br /&gt;How can I get Infopath to write out the xml file itself with UTF-8 encoding?&amp;nbsp; Is it possible?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Sheryl&lt;/p&gt;</description></item></channel></rss>