Problem Note 46724: Double-byte character set (DBCS) characters in an RTF file might not be displayed in the correct font
Double-byte character set (DBCS) characters in an RTF file might not be displayed in the correct font when the file is viewed with the Japanese version of Microsoft Word. This is most likely to occur when ODS RTF is used to generate the file, and the SAS encoding option is set to UTF-8.
The code on the Full Code tab creates an RTF file which shows the DBCS characters and the English characters in the RTF file are displayed correctly in the MS Gothic font when the file is viewed with an English version of Microsoft Word. However, when the RTF file is viewed with a Japanese version of Word, the DBCS characters are displayed in the MS Mincho font and the English characters are displayed in the MS Gothic font.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | N/A | z/OS | 9.3 TS1M1 | 9.4 TS1M0 |
Z64 | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M1 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.3 TS1M1 | 9.4 TS1M0 |
Windows 7 Enterprise 32 bit | 9.3 TS1M1 | |
Windows 7 Enterprise x64 | 9.3 TS1M1 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M1 | |
Windows 7 Home Premium x64 | 9.3 TS1M1 | |
Windows 7 Professional 32 bit | 9.3 TS1M1 | |
Windows 7 Professional x64 | 9.3 TS1M1 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M1 | |
Windows 7 Ultimate x64 | 9.3 TS1M1 | |
Windows Vista | 9.3 TS1M1 | 9.4 TS1M0 |
Windows Vista for x64 | 9.3 TS1M1 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.3 TS1M1 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.3 TS1M1 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.3 TS1M1 | 9.4 TS1M0 |
HP-UX IPF | 9.3 TS1M1 | 9.4 TS1M0 |
Linux | 9.3 TS1M1 | 9.4 TS1M0 |
Linux for x64 | 9.3 TS1M1 | 9.4 TS1M0 |
Linux on Itanium | 9.3 TS1M1 | 9.4 TS1M0 |
Solaris for x64 | 9.3 TS1M1 | 9.4 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.
The code below creates an RTF file which shows the DBCS characters and the English characters in the RTF file are displayed correctly in the MS Gothic font when the file is viewed with an English version of Microsoft Word. However, when the RTF file is viewed with a Japanese version of Word, the DBCS characters are displayed in the MS Mincho font and the English characters are displayed in the MS Gothic font.
data a;
a="あいうえお";
output;
a="abcde";
output;
run;
ods path work.template(update) sashelp.tmplmst;
proc template;
define style Styles.myrtf ;
parent = Styles.Rtf;
replace fonts /
'docFont' = ("MS Gothic" ,18pt )
'headingFont' = ("MS Gothic" ,18pt )
'headingEmphasisFont' = ("MS Gothic" ,18pt )
'FixedFont' = ("MS Gothic" ,18pt )
'BatchFixedFont' = ("MS Gothic" ,18pt )
'FixedHeadingFont' = ("MS Gothic" ,18pt )
'FixedStrongFont' = ("MS Gothic" ,18pt )
'FixedEmphasisFont' = ("MS Gothic" ,18pt )
'EmphasisFont' = ("MS Gothic" ,18pt )
'StrongFont' = ("MS Gothic" ,18pt )
'TitleFont' = ("MS Gothic" ,18pt )
'TitleFont2' = ("MS Gothic" ,18pt )
;
end;
run;
ods rtf file="test.rtf" style = styles.myrtf;
proc print data=a;
run;
ods rtf close;
Double-byte character set (DBCS) characters in an RTF file might not be displayed in the correct font when the file is viewed with the Japanese version of Microsoft Word.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-06-18 09:15:57 |
Date Created: | 2012-06-04 09:46:58 |