<?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: Encoding on OLEDB connection in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726285#M225693</link>
    <description>What I expect:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Some option similar to (in-/out-)encoding in a libname or filename statement, that enables me in a U8 session, to read the data from OLE DB like I can do in an English session.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is important that that can be done in a central point and no corrections of the dataset are necessary since that would affect a lot of code that I can't/won't change.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;From the documentation, in-/outencoding should do exactly that.&lt;BR /&gt;&lt;BR /&gt;The annoying thing is that it is not implemented in the OLE DB engine...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And about the reverse:&lt;BR /&gt;&lt;BR /&gt;The text written with U8 gives Ã¤ ` Â´ Ã± in English (as expected)&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Mar 2021 13:34:45 GMT</pubDate>
    <dc:creator>J_Muth</dc:creator>
    <dc:date>2021-03-15T13:34:45Z</dc:date>
    <item>
      <title>Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725211#M225219</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Does somebody know, how I can set the encoding for reading a table on a MS SQL server via OLE DB?&lt;/P&gt;&lt;P&gt;The table in MSSQL has a wlatin1 encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When SAS 9.4 is started with the English locale, it reads the table correctly. Unfortunately there are also other resources that need SAS in UNICODE mode. But that doesn't read the special characters correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname mydblib oledb&lt;BR /&gt;init_string="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=&amp;amp;dbase;Data Source=&amp;amp;server" schema=dbo;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table test as&lt;BR /&gt;SELECT *&amp;nbsp;FROM mydblib.test;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;outencoding = "wlatin1" on the libname statement and encoding = "wlatin1" on the SELECT, but got&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING 278-63: The option OUTENCODING is not implemented in the OLEDB engine.&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: The option ENCODING is not implemented in the OLEDB engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to read that wlatin1 table correctly in SAS 9.4 Unicode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for hints!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 17:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725211#M225219</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-10T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725319#M225267</link>
      <description>&lt;P&gt;Have you tried &lt;A href="https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=1.0&amp;amp;docsetId=nlsref&amp;amp;docsetTarget=n0kzmrsdx5evkxn1ihs24h8ljg2b.htm&amp;amp;locale=en" target="_self"&gt;this&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test as
SELECT * FROM mydblib.test(encoding='wlatin1');
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 01:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725319#M225267</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-11T01:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725354#M225290</link>
      <description>&lt;P&gt;Dear Chris!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the description of my problem: Yes, I did.&lt;/P&gt;&lt;P&gt;And the error message was:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: The option ENCODING is not implemented in the OLEDB engine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Juergen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725354#M225290</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-11T07:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725356#M225292</link>
      <description>&lt;P&gt;Can you show the full log please?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725356#M225292</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-11T07:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725408#M225315</link>
      <description>&lt;P&gt;Thanks for checking. Here is the log...&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725408#M225315</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-11T11:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725654#M225439</link>
      <description>&lt;P&gt;Just like your PDF, this file is off limits.&lt;/P&gt;
&lt;P&gt;Do not attach files. Paste everything in line using the appropriate icons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_1-1615501044911.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55846iECB2C233D9948585/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisNZ_1-1615501044911.png" alt="ChrisNZ_1-1615501044911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_2-1615501057779.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55847iE6C4F46169801115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisNZ_2-1615501057779.png" alt="ChrisNZ_2-1615501057779.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 22:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725654#M225439</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-11T22:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725711#M225472</link>
      <description>&lt;PRE class="bp-text bp-text-plain hljs bp-is-scrollable"&gt;&lt;CODE class="bp-text-code txt"&gt;NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M6 MBCS3170)
      Licensed to XXXXX.
NOTE: This session is executing on the X64_10PRO  platform.



NOTE: Analytical products:

      SAS/STAT 15.1
      SAS/ETS 15.1
      SAS/IML 15.1

NOTE: Additional host information:

 X64_10PRO WIN 10.0.18362  Workstation

NOTE: SAS initialization used:
      real time           1.10 seconds
      cpu time            0.92 seconds

NOTE: AUTOEXEC processing beginning; file is XXXXX.sas.

NOTE: Libref XXXXX was successfully assigned as follows:
      Engine:        V9
      Physical Name: XXXXX
NOTE: Libref XXXXX was successfully assigned as follows:
      Engine:        V9
      Physical Name: XXXXX

NOTE: AUTOEXEC processing completed.

1    %let server=XXXXX;
2    %let dbase=XXXXX;
3
4    libname mydblib oledb
5    init_string="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;
5  ! Initial Catalog=&amp;amp;dbase;Data Source=&amp;amp;server" outencoding="wlatin1" schema=dbo;
                                                             ---------
                                                             278
NOTE: Libref MYDBLIB was successfully assigned as follows:
      Engine:        OLEDB
      Physical Name:
WARNING 278-63: The option OUTENCODING is not implemented in the OLEDB engine.

6
7    libname mydblib oledb
8    init_string="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;
8  ! Initial Catalog=&amp;amp;dbase;Data Source=&amp;amp;server" schema=dbo;
NOTE: Libref MYDBLIB was successfully assigned as follows:
      Engine:        OLEDB
      Physical Name:

9    proc sql;
10   create table test as
11   SELECT  *
12     FROM mydblib.test(encoding='wlatin1');
WARNING: The option ENCODING is not implemented in the OLEDB engine.
13   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.20 seconds
      cpu time            0.00 seconds

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Mar 2021 06:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/725711#M225472</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-12T06:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726084#M225614</link>
      <description>&lt;P&gt;I see. This is less than ideal. Ideas:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; Look if there are parameters that can be configured with the OLEDB provider. This might involve getting a more modern version. MS has left many dead bodies in the wake of the OLEDB ship. See here. &lt;A href="https://docs.microsoft.com/en-us/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-ver15" target="_blank"&gt;https://docs.microsoft.com/en-us/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-ver15&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- Use ODBC. Unsure if encoding options are better supported.&lt;/P&gt;
&lt;P&gt;- Use the native SAS/Access product. See here &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p0378ek9nfsu5bn1cpsc8woi6qjf.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p0378ek9nfsu5bn1cpsc8woi6qjf.htm&amp;amp;locale=en&lt;/A&gt; Again, unsure if encoding options are better supported.&lt;/P&gt;
&lt;P&gt;- Ask the SQL Server admins to copy that table to a UTF-8 database. UTF-8 is the future anyway, so they might as well start the migration.&lt;/P&gt;
&lt;P&gt;None of this is ideal, but then you seem to be stuck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 07:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726084#M225614</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-14T07:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726091#M225619</link>
      <description>Thank you for the hints. I don't think that this is a problem on the Microsoft side. As I wrote above:&lt;BR /&gt;&lt;BR /&gt;When I start SAS with the English configuration script, it works correctly. But because of the connection to UTF8 encoded sources I want to start it with the u8 configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ODBC is not a solution because of the SingleSignOn approach used in our MSSQL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And I am not allowed to change the table in the DB.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So the only way to go is to start SAS (Englisch), get the table from the db. Start SAS (Unicode) and proceed...&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Mar 2021 08:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726091#M225619</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-14T08:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726124#M225633</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308016"&gt;@J_Muth&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Does somebody know, how I can set the encoding for reading a table on a MS SQL server via OLE DB?&lt;/P&gt;
&lt;P&gt;The table in MSSQL has a wlatin1 encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When SAS 9.4 is started with the English locale, it reads the table correctly. Unfortunately there are also other resources that need SAS in UNICODE mode. But that doesn't read the special characters correctly.&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does "doesn't read the special characters correctly" mean?&amp;nbsp; Does it translate the non-7bit ascii codes in the database from their representation in the single byte WLATIN1 encoding into the multi-byte UTF-8 encoding?&amp;nbsp; Did&amp;nbsp; you remember to include extra length in the character variables to allow the possibility that the new UTF-8 strings will be longer?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 13:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726124#M225633</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-14T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726154#M225644</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I don't think that this is a problem on the Microsoft side.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Not saying there is a problem on the MS side, just that there might be useful parameters that you could set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, did you see on the MS page whose link I sent that your connection method seems to be unsupported?&lt;BR /&gt;&lt;BR /&gt;If my ideas are not workable, then I see no option other than importing with SAS &lt;EM&gt;UTF-8&lt;/EM&gt;&amp;nbsp;and reprocessing with SAS &lt;EM&gt;wlatin&lt;/EM&gt;, as you suggest.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 21:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726154#M225644</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-14T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726227#M225662</link>
      <description>Dear Tom!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;(Sorry, it is not possible to attach a screenshots. I hope, the characters will show correctly in this forum...)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are 2 problems:&lt;BR /&gt;&lt;BR /&gt;1) Reading data that is already in the DB&lt;BR /&gt;&lt;BR /&gt;2) Writing updates into the DB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For Simulation:&lt;BR /&gt;data testline;&lt;BR /&gt;length text 20;&lt;BR /&gt;* E4 60 B4 F1;&lt;BR /&gt;text = "ä ` ´ ñ";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data mydblib.test;&lt;BR /&gt;set testline;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ad 1) With&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select text into :check from mydblib.test;&lt;BR /&gt;quit;&lt;BR /&gt;%put &amp;amp;check;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;executed in SAS (English) I get as wanted:&lt;BR /&gt;&lt;BR /&gt;ä ` ´ ñ&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The SQL run in SAS (U8) on the same data (not created with SAS (U8)) gives something that I can’t copy paste from the log.&lt;BR /&gt;&lt;BR /&gt;But it looks like:&lt;BR /&gt;&lt;BR /&gt;• ` • • in the log and&lt;BR /&gt;&lt;BR /&gt;� ` � when displaying the table (Yes, there are only two ?, but length is 20!)&lt;BR /&gt;&lt;BR /&gt;An export to a csv gives correct characters.&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ad 2)&lt;BR /&gt;&lt;BR /&gt;On the other hand, when I append data with SAS (U8),&lt;BR /&gt;proc append data=testline base=mydblib.test;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;SAS (English) reads:&lt;BR /&gt;&lt;BR /&gt;Ã¤ ` Â´ Ã± from the second line (in the log, when displaying the table and exporting to CSV)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;So as long as there is no encoding-Option on just that connection I will have to use the workaround of starting two SAS sessions, one for the communication with the MSSQL server (SAS(English)), another for the rest of the system (SAS(U8)). &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726227#M225662</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-15T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726247#M225674</link>
      <description>&lt;P&gt;So does the database contain the WLATIN1 encoding of 'E460B4F1'x for those characters?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or the UTF-8 encoding of 'C3A460C2B4C3B'?&lt;BR /&gt;Note that the back-tick uses the same '60'x encoding in both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you literally placings those non-7bit ascii codes into the text of your SAS program?&amp;nbsp; Or are you reading them from the files?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726247#M225674</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-15T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726256#M225678</link>
      <description>The database contains texts in wlatin1, as 'E460B4F1'x, placed there by another legacy application.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The literals in the snippet were only for demonstration purposes. Those texts are normally imported from other systems (file interface, e.g. csv, xlsx) and I can handle the encoding with options.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726256#M225678</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-15T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726263#M225682</link>
      <description>&lt;P&gt;So if you read an 'E4'x byte from a WLATIN1 source (your OLEDB database) into a UTF-8 SAS session you would expect the result to be the bytes 'C3A4'x.&amp;nbsp; Is that what is happening?&lt;/P&gt;
&lt;P&gt;And what happens if you try the reverse?&amp;nbsp; THat is push the hex code 'C3A4'x into the database?&amp;nbsp; Does it end up as 'E4'x?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726263#M225682</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-15T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding on OLEDB connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726285#M225693</link>
      <description>What I expect:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Some option similar to (in-/out-)encoding in a libname or filename statement, that enables me in a U8 session, to read the data from OLE DB like I can do in an English session.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is important that that can be done in a central point and no corrections of the dataset are necessary since that would affect a lot of code that I can't/won't change.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;From the documentation, in-/outencoding should do exactly that.&lt;BR /&gt;&lt;BR /&gt;The annoying thing is that it is not implemented in the OLE DB engine...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And about the reverse:&lt;BR /&gt;&lt;BR /&gt;The text written with U8 gives Ã¤ ` Â´ Ã± in English (as expected)&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoding-on-OLEDB-connection/m-p/726285#M225693</guid>
      <dc:creator>J_Muth</dc:creator>
      <dc:date>2021-03-15T13:34:45Z</dc:date>
    </item>
  </channel>
</rss>

