xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_OemToAnsi()

Converts a character string from the OEM to the ANSI character set.

Syntax

HB_OemToAnsi( <cOEM_String> ) --> cANSI_String

Arguments

<cOEM_String>
A character string holding characters from the OEM character set.

Return

The function returns a string converted to the ANSI character set.

Description

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.

Info

See also:HB_AnsiToOem(), HB_SetCodePage()
Category: Conversion functions , xHarbour extensions
Source:rtl\oemansi.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// See the example for function HB_AnsiToOem()

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe