2007 Apr 05 11:01 AM
Hello everyone,
I´m working with a subroutine for testing Unicode in our programs. In UTF-8 there´s no problem. Then I switched the keyboard, language and location in my computer´s settings to czech and try to upload czech texts to UNIX directory like this:
OPEN DATASET fileunix FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE
MESSAGE msg_open REPLACEMENT CHARACTER '?' IGNORING CONVERSION ERRORS.
Some characters are not correctly interpreted and the system triggers an exception if I erase the addition IGNORING CONVERSION ERRORS. If I don´t, then the code looks like this:
+denní p
?
ehled regionálních zpráv z kuchyn?
iDNES?
j?ích sportovních novinek?
etn? mo?nosti vyhledávání+so what´s the idea here ?? how come can the system not read those characters ?? system is MySAP 2005 and unicode-enabled.
2007 Apr 05 11:29 AM
Hi Jorge,
As you are saying that system is MySAP 2005 and unicode-enabled, try this
OPEN DATASET fileunix FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER text TO fileunix.
If you open your text file with ENCODING DEFAULT, the text format used for reading or writing data will be platform dependent:
-->In an non-Unicode system, data will be written in non-Unicode format
-->In a Unicode-system, data will be written in Unicode format UTF-8
Hope this will help you.
Thanks,
Shilpa K
2007 Apr 05 11:29 AM
Hi Jorge,
As you are saying that system is MySAP 2005 and unicode-enabled, try this
OPEN DATASET fileunix FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER text TO fileunix.
If you open your text file with ENCODING DEFAULT, the text format used for reading or writing data will be platform dependent:
-->In an non-Unicode system, data will be written in non-Unicode format
-->In a Unicode-system, data will be written in Unicode format UTF-8
Hope this will help you.
Thanks,
Shilpa K