string.utf8ToAnsi

Syntax string.utf8ToAnsi (s)

Params s, a string.

Action Converts text from UTF-8 to ANSI.

Returns The converted text.

Examples string.utf8ToAnsi ("Test") //no change to low ASCII characters

   » "Test"

string.latinToMac ("Voulez-vous du th‰‡?") //the é is decoded

   » "Voulez-vous du thé?

Notes This verb is new in Frontier 7 and Radio 7.0.1.

To convert from UTF-8 to Mac text, use this verb to convert to ANSI, then use string.latinToMac.

See Also string.utf16ToAnsi

string.ansiToUtf8

string.ansiToUtf16

Discuss