Extracted from Pike v7.6 release 13 at 2004-09-08.
pike.ida.liu.se
[Top]

Method utf8_to_string()


Method utf8_to_string

string utf8_to_string(string s)
string utf8_to_string(string s, int extended)

Description

Converts an UTF8 byte-stream into a string.

Note

Throws an error if the stream is not a legal UFT8 byte-stream.

Accepts and decodes the extension used by string_to_utf8() , if extended is 1.

See also

Locale.Charset.encoder() , string_to_unicode() , string_to_utf8() , unicode_to_string()