<?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: SAS-Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972101#M377450</link>
    <description>Umlauts must be coded as UTF characters (e.g. ä as two bytes 195 and 164) in your data source.</description>
    <pubDate>Tue, 05 Aug 2025 10:41:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2025-08-05T10:41:37Z</dc:date>
    <item>
      <title>SAS-Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972094#M377447</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anybody help me?&lt;/P&gt;&lt;P&gt;I have to create Format-libraries with umlauts and sorbian characters. If i choose SASApp umlauts will be translated but there is an error for sorbian characters. If i choose SASApp_utf8 sorbian characters are translated but umlauts are not. SAS-Version is 9.4M7.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 08:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972094#M377447</guid>
      <dc:creator>Thomas1981</dc:creator>
      <dc:date>2025-08-05T08:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS-Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972096#M377448</link>
      <description>&lt;P&gt;Without more details search this forum for UNICODE and FORMAT. You should be able to create strings with either/both that are honored in use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 08:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972096#M377448</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-08-05T08:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS-Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972099#M377449</link>
      <description>&lt;P&gt;Sorry, but i don't understand the problem.&lt;/P&gt;
&lt;P&gt;SASApp_utf8 is just a name, you have to check the encoding option to verify that unicode is active. Unicode supports both sorbian chars and umlauts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show the code and the result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 10:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972099#M377449</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2025-08-05T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS-Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972101#M377450</link>
      <description>Umlauts must be coded as UTF characters (e.g. ä as two bytes 195 and 164) in your data source.</description>
      <pubDate>Tue, 05 Aug 2025 10:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972101#M377450</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-08-05T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS-Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972125#M377452</link>
      <description>&lt;P&gt;You cannot use the same format with two different encodings.&amp;nbsp; That is because the bytes used to represent the characters differ depending the encoding you are using.&amp;nbsp; Consider a lower case n with tilde over it.&amp;nbsp; It is 'F1'x in LATIN1 encoding and 'C3B1'x in UTF-8 encoding.&lt;/P&gt;
&lt;PRE&gt;25   data test;
26     enye = 'F1'x ;
27     put enye= enye $hex2. ;
28     utf8 = kcvt(enye,'latin1','utf-8');
29     put utf8= $hex4.;
30   run;

enye=ñ F1
utf8=C3B1
&lt;/PRE&gt;
&lt;P&gt;You will probably want to create two different format CATALOGs.&amp;nbsp; (They could be in the same LIBRARY if you want, just use different names for the catalogs.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=mylib.utf8;
  value ....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then just change which one you include in your FMTSEARCH system option based on what encoding your current session is using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could make two different formats and then decide which format to use based on the encoding.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
  value latin1f 1='F1'x;
  value ut8f 1='C3B1'x ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 17:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Format/m-p/972125#M377452</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-08-05T17:24:24Z</dc:date>
    </item>
  </channel>
</rss>

