<?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 Why does the log show garbled characters? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800529#M40352</link>
    <description>&lt;P&gt;I am try to connect to MySQL database on remote server by using ODBC. I don't know whether the statement is wrong or something else because the log shows a lot of garbled characters. The SAS EG server system encode has been set to utf-8 already and the system language is Chinese.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2022-03-07 100334.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69192i5325D5ED25B05E80/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2022-03-07 100334.png" alt="屏幕截图 2022-03-07 100334.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 02:18:07 GMT</pubDate>
    <dc:creator>ZLX</dc:creator>
    <dc:date>2022-03-07T02:18:07Z</dc:date>
    <item>
      <title>Why does the log show garbled characters?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800529#M40352</link>
      <description>&lt;P&gt;I am try to connect to MySQL database on remote server by using ODBC. I don't know whether the statement is wrong or something else because the log shows a lot of garbled characters. The SAS EG server system encode has been set to utf-8 already and the system language is Chinese.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2022-03-07 100334.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69192i5325D5ED25B05E80/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2022-03-07 100334.png" alt="屏幕截图 2022-03-07 100334.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 02:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800529#M40352</guid>
      <dc:creator>ZLX</dc:creator>
      <dc:date>2022-03-07T02:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the log show garbled characters?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800536#M40353</link>
      <description>&lt;P&gt;Database connection strings are notoriously tricky. They are sensitive to spaces, line feeds, lower and uppercase and so on. I doubt it will work the way you have it spread over several lines. This is what a working ODBC connection to SQL Server looks like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname SQLSRVR odbc noprompt = "server=SQLServerName;DRIVER=SQL Server Native Client 11.0;Trusted Connection=yes" DATABASE = MyDatabase schema = dbo;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Has the correct ODBC driver been installed on the SAS App server? Check with your SAS administrator for the right set up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the garbled characters. This is most likely caused by differing encoding / language settings in SAS versus MySQL. Getting help from SAS Tech Support is a good idea.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 03:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800536#M40353</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-07T03:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the log show garbled characters?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800592#M40354</link>
      <description>&lt;P&gt;Thanks for your remarkable prompt, which "&lt;SPAN&gt;Database connection strings are notoriously tricky. They are sensitive to spaces&lt;/SPAN&gt;" inspires me quite a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The driver name after DRIVER= option must not be with a leading space! It is my personal habit to type spaces between the euqal sign, which confused me pretty much when facing this scenario. I must watch out for this careully thereafter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found that the value of DATABASE= option is the schema name, to which waited to connect. The MySQL database structure should be &lt;SPAN&gt;distinguished&amp;nbsp;&lt;/SPAN&gt;from MS SQL Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help again!!!!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;#Failed - with leading space
libname mysqldb odbc noprompt = "&lt;STRONG&gt;driver = MySQL ODBC 8.0 Unicode Driver&lt;/STRONG&gt;;server=xxx;port=xxx;uid=xxx;pwd=xxx;database=xxx"; 

#Successful - without leading space
libname mysqldb odbc noprompt = "&lt;STRONG&gt;driver=MySQL ODBC 8.0 Unicode Driver&lt;/STRONG&gt;;server=xxx;port=xxx;uid=xxx;pwd=xxx;database=xxx"; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 09:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800592#M40354</guid>
      <dc:creator>ZLX</dc:creator>
      <dc:date>2022-03-07T09:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the log show garbled characters?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800720#M40355</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390799"&gt;@ZLX&lt;/a&gt;&amp;nbsp;- I should have mentioned this very useful website:&amp;nbsp;&lt;A href="https://www.connectionstrings.com/" target="_blank"&gt;ConnectionStrings.com - Forgot that connection string? Get it here!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, leaving out spaces is a very good idea when testing connection strings.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 19:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800720#M40355</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-07T19:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the log show garbled characters?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800759#M40357</link>
      <description>Nice!</description>
      <pubDate>Tue, 08 Mar 2022 00:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-does-the-log-show-garbled-characters/m-p/800759#M40357</guid>
      <dc:creator>ZLX</dc:creator>
      <dc:date>2022-03-08T00:47:33Z</dc:date>
    </item>
  </channel>
</rss>

