Consultor Eletrônico



Kbase P152941: How to output data from a non-UTF-8 codepage into UTF-8 using 4GL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/18/2009
Status: Unverified

GOAL:

How to output data from a non-UTF-8 codepage into UTF-8 using 4GL

GOAL:

How to export data stored in a non-UTF-8 database into UTF-8 file.

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

Use the OUTPUT statement with the CONVERT option:

DEFINE STREAM my_stream.
OUTPUT STREAM my_stream CONVERT SOURCE "ISO8859-1" TARGET "UTF-8" TO filename.
FOR EACH customer:
EXPORT customer.
END.
OUTPUT CLOSE.