12-01-2008 3:38 PM
Hi Guys,
I am writing a file using OPEN DATASET with following command:-
OPEN DATASET outfile FOR OUTPUT IN TEXT MODE
ENCODING UTF-8 IGNORING CONVERSION ERRORS.
Even though I am forcing the encoding to UTF-8 , the output file comes out in IS0-8859(Western European Format).
I have found a way to forcefully make the file by doing some coding changes. But this will require me to modify all the programs with my changes.
When I was searching for solution last time, I read about the system parameter which determines the format of the file which is written by OPEN DATASET OUTPUT statement.
But I am unable to find the same. If you know the way to set the parameter which governs the default encoding kindly let me know
Thanks for your help
Regards
Prashant
12-01-2008 9:27 PM
UTF8 and ISO8859 are rather the same. You can see in http://en.wikipedia.org/wiki/ISO_8859 that "The first 256 characters in Unicode and the UCS are identical to those in ISO/IEC-8859-1."
What is really the problem?
12-01-2008 10:34 PM
HI Sandra,
Thanks for the response.
These outtbound files generated from SAP are transferred to various other systems. These systems expect them is one format. Either UTF-8 or Western.
But I am getting the format of the output file different, depending on whether the data has Unicode character such as EURO symbol in it
Thanks again
Prashant
12-02-2008 8:26 AM
On my system, it works. I transfer only euro character, and I get a file with this hex content which is UTF-8 : E2 82 AC 20 (first 3 bytes are the euro character, the last is the line termination).
Could you try on your system?
12-02-2008 9:35 AM
try:
OPEN DATASET outfile FOR OUTPUT IN TEXT MODE
ENCODING NON-UNICODE