Consultor Eletrônico



Kbase P103809: Importing Unicode text file with the Import command does not work
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/2/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.x

SYMPTOM(s):

Importing Unicode text file with the Import command does not work

Import of Unicode (not UTF-8) text file fails to import any data.

CAUSE:

The text file is encoded in Unicode format not UTF-8. Progress only supports UTF-8 encoding of Unicode characters, so the imput file must be in this format for the import to work as expected.

FIX:

Encode the file in UTF-8 format when it is created or open it in Notepad and save under another file name but specifying UTF-8 encoding. The file can then be imported in a Progress session (e.g. 9.1D) started with, e.g.:

prowin32.exe -cpinternal 1250 -cpstream UTF-8 -cpcoll Hungarian.

Then, provided the font is correct any extended characters will display as expected.