Convert Target "UTF-8"

robsoncruzjr

New Member
Hi,
I'm trying to generate a simple file (.TXT) with UTF-8 format using the following command but it isn't working!!! :mad:

DEFINE STREAM str-out.
OUTPUT STREAM str-out TO VALUE("C:\TMP\CONVERT.TXT") CONVERT TARGET "UTF-8".
PUT STREAM str-out "TEST UTF-8" SKIP.
OUTPUT STREAM str-out CLOSE.

What do I have to do to generate the file correctly?
How can I validate it?

I'm using Progress 9.1E.

Thanks,
Robson Cruz Junior
 

Cecil

19+ years progress programming and still learning.
UTF-8 is a bit of a bugger under V9.1x

You have to run the program in Batch Mode (-B) or AppServer/WebSpeed. Also make sure you have the startup parameter -cpstream UTF-8 -cpinternal UTF-8 and -noutf8warning.
 

roco

New Member
Hi,
I'm trying to generate a simple file (.TXT) with UTF-8 format using the following command but it isn't working!!! :mad:

DEFINE STREAM str-out.
OUTPUT STREAM str-out TO VALUE("C:\TMP\CONVERT.TXT") CONVERT TARGET "UTF-8".
PUT STREAM str-out "TEST UTF-8" SKIP.
OUTPUT STREAM str-out CLOSE.

What do I have to do to generate the file correctly?
How can I validate it?

I'm using Progress 9.1E.

Thanks,
Robson Cruz Junior

Dear Robson,

You can use a new session with cpstream UFT-8


Regards,
Arthur Roco
 
Top