strcvt

strcvt — converts the Windows character set of a string.

Syntax

strcvt (string, from?, to?)

		

Arguments

string

The string that you need to convert.

from

An optional argument specifying the Windows code page identifier for the local character set. If no value is entered, the default is 0, for your system's code page identifier.

to

An optional argument specifying the Windows code page identifier of the new character set for the string. If no value is entered, the default is 65001, for UTF8.

Returns

The converted string.

Description

This function lets Windows users convert the local character set for a given string into a different character set. In many cases, this function is used to convert the local character set into UTF8, and can thus be run with a single string argument, using the defaults for the from and to arguments. A list of valid Windows code page identifiers for various character sets can be found online in the Microsoft documentation, or by searching on the term "code page identifiers".

[Note]

In QNX or Linux this function simply returns the string argument.