UTF8()

Syntax

*Buffer = UTF8(String$)
Description
Creates an UTF8 representation of the string. When no more needed, the buffer needs to be freed with FreeMemory().

Parameters

String$ The string to convert.

Return value

The UTF8 representation of the string.

Remarks

This function is mainly useful when interacting with third-party libraries which requiers UTF8 as input. Pseudotype 'p-utf8' can also be used to automated the converting process when importing external functions.

Example

  *UTF8 = UTF8("Hélé")
  ShowMemoryViewer(*UTF8, 6)

See Also

Ascii()

Supported OS

All

<- UCase() - String Index - UnescapeString() ->