<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XML encoding in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208460#M7672</link>
    <description>I have been banging my head against the wall with the same issue loading raw XML into a MS SQL Server 2014 XML datatype column. 
&lt;BR /&gt;Changing the encoding of or removing the XML declaration line from the input file did not work. 
&lt;BR /&gt;Adding the following value to the jtds connection string ("Additional Parameters" option) worked. &amp;nbsp;The setting of source file encoding and the xml declaration are irrelevant. 
&lt;BR /&gt;"sendStringParametersAsUnicode=false" 
&lt;BR /&gt;jtds options: 
&lt;BR /&gt; 
&lt;A href="https://www.qint.de/joria/doc/jdbc/jtds.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.qint.de/joria/doc/jdbc/jtds.html&lt;/A&gt; 
&lt;BR /&gt;Screenshot of Talend MS SQL Server jdbc Connection properties 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD9b.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129632i24DE0B368365D498/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD9b.png" alt="0683p000009MD9b.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 30 Jul 2015 19:08:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-30T19:08:20Z</dc:date>
    <item>
      <title>XML encoding</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208458#M7670</link>
      <description>Hi, 
&lt;BR /&gt;I have created XML file which I am passing to SQL database as string. 
&lt;BR /&gt;Everything look ok unitl my string comming to the SQL database procedure as string where I am having error below. 
&lt;BR /&gt;Is anyone having an idea what can be. Also you can see an image of my work. 
&lt;BR /&gt;Thanks
&lt;BR /&gt;Z
&lt;BR /&gt;Exception in component tMSSqlSP_2
&lt;BR /&gt;java.sql.SQLException: XML parsing: line 1, character 44, unable to switch the encoding
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:632)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:584)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.execute(JtdsPreparedStatement.java:561)</description>
      <pubDate>Sat, 16 Nov 2024 12:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208458#M7670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: XML encoding</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208459#M7671</link>
      <description>Hi,&lt;BR /&gt;From Microsoft - &lt;A href="http://support.microsoft.com/kb/232580" rel="nofollow noopener noreferrer"&gt;http://support.microsoft.com/kb/232580&lt;/A&gt;. For other related posts do search on 'SQL server encoding'.&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 11 Apr 2011 23:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208459#M7671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-11T23:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: XML encoding</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208460#M7672</link>
      <description>I have been banging my head against the wall with the same issue loading raw XML into a MS SQL Server 2014 XML datatype column. 
&lt;BR /&gt;Changing the encoding of or removing the XML declaration line from the input file did not work. 
&lt;BR /&gt;Adding the following value to the jtds connection string ("Additional Parameters" option) worked. &amp;nbsp;The setting of source file encoding and the xml declaration are irrelevant. 
&lt;BR /&gt;"sendStringParametersAsUnicode=false" 
&lt;BR /&gt;jtds options: 
&lt;BR /&gt; 
&lt;A href="https://www.qint.de/joria/doc/jdbc/jtds.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.qint.de/joria/doc/jdbc/jtds.html&lt;/A&gt; 
&lt;BR /&gt;Screenshot of Talend MS SQL Server jdbc Connection properties 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD9b.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129632i24DE0B368365D498/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD9b.png" alt="0683p000009MD9b.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208460#M7672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T19:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: XML encoding</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208461#M7673</link>
      <description>FYI - I've also found using the AdditionalParams option of&amp;nbsp;"sendStringParametersAsUnicode=false" useful when updating table data withe US default collation level of "SQL_Latin1_General_CP1_CI_AS". 
&lt;BR /&gt;Without this, it often ignores any indexes and performs a full table scan.</description>
      <pubDate>Wed, 29 Mar 2017 14:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-encoding/m-p/2208461#M7673</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2017-03-29T14:12:04Z</dc:date>
    </item>
  </channel>
</rss>

