xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_Translate()

Converts a character string from one code page to another one.

Syntax

HB_Translate( <cString>        , ;
              <cCodePageID_Src>, ;
              <cCodePageID_Tgt>  ) --> cConvertedString

Arguments

<cString>
This is a character string to be translated from <cCodePageID_Src> to <cCodePageID_Tgt>.
<cCodePageID_Src>
This is a character string identifying the code page ID, <cString> is encoded with (refer to HB_SetCodePage() for code page IDs.
<cCodePageID_Tgt>
This is a character string identifying the code page ID, <cString> must be translated to.

Return

The function returns the converted character string. If either code page is not available, the return value is a null string ("").

Info

See also:HB_LangSelect(), HB_SetCodePage()
Category: Language specific , xHarbour extensions
Source:rtl\cdpapi.c
LIB:xhb.lib
DLL:xhbdll.dll


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