PDA

View Full Version : Oem / ansi / utf-8



Roman Köhler
27-Oct-2011, 09:57 AM
Hello,

we need to export a textfile in UTF-8 format. But I don't know, whether VDF is able to do this. Or is UTF-8 = OEM or ANSI? If not, is the a method to convert strings to UTF-8?

Thanks a lot

Stephen W. Meeley
27-Oct-2011, 10:00 AM
Roman,

If you look under Miscellaneous Functions in the Language Reference you will see OEM/UTF8 conversions functions listed.

Jose
27-Oct-2011, 10:52 AM
Hi Roman,

Time ago I see this "wrapper" at the forum



Function OemToUtf8String String sOemString Returns String
Address aString
String sUtf8String
Boolean bVoid

Move (OemToUtf8Buffer(AddressOf(sOemString), CStringLength(sOemString))) to aString
Move aString to sUtf8String
Move (Free(aString)) to bVoid

Function_Return sUtf8String
End_Function


I work with it and no problem.

P.D: you have to create the Utf8ToOemString

Regards