Convert a string to a specific character set
LOADLIB "wh::system.whlib"; STRING FUNCTION EncodeCharSet(STRING text, STRING charset)
Text to convert
Destination character set (US-ASCII, CP1252, ISO-8859-1 or UNICODE(UTF-8))
The text as a sequence of bytes in the requested character set. An empty string if the character set is unknown
Converts a string to a character set. Characters that do not exist in the new character set are omitted.
//Returns "mlauts and uro's don't mix" EncodeCharSet("Ümlauts and €uro's don't mix", "US-ASCII")