I have created a data set with some Swedish words containing national characters like å, ö and ä. In the output window in SAS, these characters are displayed correctly but when I create ods rtf output and open the rtf file in Word or WordPad they turn into Ã¥, Ã¶ and Ã¤.
Do I need to change some settings or is there anything else I can do to solve this problem?
The following code works out fine on my computer.
Things you can check :
- what's the value of your "Locale" SAS system option ? (try SWEDISH as a value)
- try adding a TRANTAB=ASCII option to your ODS RTF opening statement
- are you using (options in the procedure, Template style) some sort of special font in which those characters would not display (copy your SAS Output and paste into Word, then change the font to the one you would like to use : is it correctly displayed) ?
By the way, what SAS version are you using ?
My testing code is
DATA work.swedish ;
INFILE CARDS DLM = "/" ;
INPUT name :$20. ;
ODS RTF FILE = "c:\temp\sweeeeeeden.doc" ;
PROC PRINT ;
ODS RTF CLOSE ;