pui.UTF8.encode( string )



This function can encode a string into UTF-8. UTF-8 is a variable-length character encoding for Unicode. It can represent any character in the Unicode standard, yet is backwards compatible with ASCII.

Example:

var encoded = pui.UTF8.encode(s);