asANSI

asANSI(lcid: Integer): Binary;

The asANSI method of the StringUtf8 primitive type returns the receiving UTF8 string converted to a Binary value using the character set of the code page for the locale specified by the lcid parameter.

You can use this method in a Unicode environment to produce ANSI strings in a binary format.