Consultor Eletrônico



Kbase P176497: Can Progress read the BOM (Byte Order Mark) of a Unicode file?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/5/2010
Status: Unverified

GOAL:

Can Progress read the BOM (Byte Order Mark) of a Unicode file?

GOAL:

Can Progress read the BOM (Byte Order Mark) of a UTF-8 file?

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

FIX:

A Unicode file can normally be read using INPUT FROM SomeFile BINARY and IMPORT into a MEMPTR variable. This will allow the reading of the BOM of some types of Unicode formatted files. However, UTF-8 formatted files cannot be read in this way because we know the UTF-8 BOM structure and if we encounter it we process it internally (which is to be expected, 99.9% of the time you do NOT want to see the BOM, you just want to see the data).