Usage Note 13727: Unicode SAS program with byte order mark (BOM)
If you edit your Unicode SAS program with a Microsoft product such
as Notepad and that program fails to run on SAS, you might consider
the issue to be related to byte order mark (BOM). But because Notepad
does not allow you to suppress the BOM, this is not the issue.
You can resolve this issue by using one of two methods:
* Re-edit the file with a non-Microsoft unicode editor.
* You can add to your program either of these 3 sets of code:
1. filename infile "utf8file with BOM" encoding=utf8 ;
%inc infile ;
2. %inc "utf8file with BOM" /encoding=utf8 ;
3. inc "utf8file with BOM" encodingutf8;
Either method forces SAS to use a transcoding routine to process data.
Usually, the encoding specification can be omitted if file encoding is
the same as session encoding, but if it has BOM, you always need to
specify encoding=utf8 option.
More information about Unicode and BOM is available from
http://www.unicode.org/unicode/faq/utf_bom.html#29.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | medium |
Topic: | System Administration ==> Installation ==> NLS (National Language Support)
|
Date Modified: | 2004-11-04 11:52:02 |
Date Created: | 2004-11-01 14:54:40 |