Difference between revisions of "STRCONV()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→See Also) |
Yvonne.milne (Talk | contribs) (→Description) |
||
Line 13: | Line 13: | ||
The source codepage can be optionally specified in <cp-id>, where <cp-id> is the numeric or character string codepage id. If not specified, "Windows-1250" is assumed. | The source codepage can be optionally specified in <cp-id>, where <cp-id> is the numeric or character string codepage id. If not specified, "Windows-1250" is assumed. | ||
− | + | From Lianja v6.3, STRCONV() also supports the following Visual Foxpro compatible values for <cp-id>: | |
+ | |||
+ | {| class="wikitable" width="100%" | ||
+ | !width="30%"|<cp-id> | ||
+ | !width="70%"|Description | ||
+ | |- | ||
+ | |valign="top"|13 | ||
+ | |valign="top"|Encodes <expC> to base64. | ||
+ | |- | ||
+ | |valign="top"|14 | ||
+ | |valign="top"|Decodes <expC> from base64. | ||
+ | |- | ||
+ | |} | ||
==Example== | ==Example== |
Revision as of 12:11, 23 November 2021
Contents
Purpose
Function to convert a codepage encoded character expression to its UTF-8 equivalent
Syntax
STRCONV(<expC> [, <cp-id>])
See Also
BASE64_DECODE(), BASE64_ENCODE(), BASE64_ENCODE_FILE(), BASE64_ENCODE_IMAGE(), Command Line Switches, CONVERTUTF8
Description
The STRCONV() function converts a codepage encoded character expression, <expC>, to its UTF-8 equivalent.
The source codepage can be optionally specified in <cp-id>, where <cp-id> is the numeric or character string codepage id. If not specified, "Windows-1250" is assumed.
From Lianja v6.3, STRCONV() also supports the following Visual Foxpro compatible values for <cp-id>:
<cp-id> | Description |
---|---|
13 | Encodes <expC> to base64. |
14 | Decodes <expC> from base64. |
Example
cGreek = filetostr("mygreekfile.txt") ? cGreek ? strconv(cGreek,1253) ? strconv(cGreek,"Windows-1253")