hb_Translate( <cString>,
[<FromCodePageID>], [<ToCodePageID>]
) ➜ cConvertedString
changes character encoding of given string from one
code-page to the other.
If either of <FromCodePageID>
or <ToCodePageID>
is
ommited then current (hb_vmCDP) codepage is used. If none of
them is specified or is invalid or not available, an RTE
occurs, which means that before invoking the function, the
code page module(s) needed for conversion must have been
linked (using a REQUEST
HB_CODEPAGE_XXXXX
statement).
For a complete list of code-pages supported by Harbour see hb_cdpList() function.
See also, hb_strToUTF8() similar
function.
hb_Translate() example usage:
REQUEST hb_codepage_elwin, hb_codepage_utf8ex cUTF8String := hb_Translate( "τα πάντα ρεί", "ELWIN", "UTF8" ) // converts given string from codepage `cp-1253` to `UTF-8`
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/b21a9bbf-c208-4c7c-9ca2-0163e8781808n%40googlegroups.com.
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/5ea048a5-ba1a-48f4-84d0-973837769979n%40googlegroups.com.