asStringUtf8

asStringUtf8(lcid: Integer): StringUtf8;

The asStringUtf8 method of the String primitive type returns the receiving string converted to a UTF8 string value.

In an ANSI environment, the conversion uses the character set of the code page for the locale specified by the lcid parameter.