<?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: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/375962#M90187</link>
    <description>&lt;P&gt;Change your SAS encoding into UTF-8 .&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 10:32:53 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-07-14T10:32:53Z</dc:date>
    <item>
      <title>SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/375695#M90104</link>
      <description>&lt;P&gt;I have&amp;nbsp;a SQL Server table with chinese characters in it. I am able to view it properly through Base SAS (Unicode Suppport), but when I try to open it in Enterprise Guide, I hit the error "Unable to transcode data to/from UCS-2 encoding" upon clicking the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;libname mydb odbc noprompt="driver=sql server;server=mysrv/db;uid=sa;pwd=pwd;database=mydb;" schema=dbo;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Greatly appreciate any inputs on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/375695#M90104</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-07-13T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/375962#M90187</link>
      <description>&lt;P&gt;Change your SAS encoding into UTF-8 .&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 10:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/375962#M90187</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-14T10:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376041#M90196</link>
      <description>&lt;P&gt;The default is already in UTF-8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to resolve it by adding read permissions to the library and table itself in SMC and pre-assigning the library with metadata engine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find it strange though that sometimes the error appears when you first open the table but once it's in the process flow it can actually be viewed properly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376041#M90196</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-07-14T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376219#M90274</link>
      <description>Make sure SAS has the same encoding with SQL .</description>
      <pubDate>Sat, 15 Jul 2017 11:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376219#M90274</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-15T11:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376389#M90353</link>
      <description>&lt;P&gt;Is it the collation in SQL Server? The database is&amp;nbsp;Latin1_General_CI_AI and I can view chinese characters when I query in SQL Management Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm actually able to view them now in SAS EG also, but when I filter by dates I get thrown again to a similar error.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 01:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376389#M90353</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-07-17T01:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ODBC ERROR: Unable to transcode data to/from UCS-2 encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376519#M90385</link>
      <description>&lt;P&gt;It is most likely unprinted character problem. E.X. you have half of a chinese word or a illegal character&amp;nbsp; for EG.&lt;/P&gt;
&lt;P&gt;If that was it, you need clean your data before using EG.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also see if you could print it in HTML destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html;&lt;/P&gt;
&lt;P&gt;proc print data=have(obs=100);run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-ODBC-ERROR-Unable-to-transcode-data-to-from-UCS-2-encoding/m-p/376519#M90385</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-17T12:39:07Z</dc:date>
    </item>
  </channel>
</rss>

