xHarbour Reference Documentation > Function Reference |
Converts a character string from the OEM to the ANSI character set.
HB_OemToAnsi( <cOEM_String> ) --> cANSI_String
The function returns a string converted to the ANSI character set.
The function converts all characters of <cOEM_String> to the corresponding characters in the Windows ANSI character set. Both character sets differ in characters whose ASCII values are larger than 127.
If a character in the OEM string does not have an equivalent in the ANSI character set, it is converted to a similar character of the ANSI character set. In this case, it may not be possible to reverse the OEM => ANSI conversion with function HB_AnsiToOem().
Note: all databases created with Clipper store their data using the OEM character set. Displaying data in xHarbour console applications occurs with the OEM character set. Data display in xHarbour GUI applications is done with the Windows ANSI character set.
See also: | HB_AnsiToOem(), HB_SetCodePage() |
Category: | Conversion functions , xHarbour extensions |
Source: | rtl\oemansi.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// See the example for function HB_AnsiToOem()
http://www.xHarbour.com