[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 UTF-8 byte-stream into a string.
- Note
Throws an error if the stream is not a legal UTF-8 byte-stream.
Accepts and decodes the extension used by string_to_utf8() if
extended is 1 .
- Note
In conformance with RFC 3629 and Unicode 3.1 and later,
non-shortest forms are not decoded. An error is thrown instead.
- See also
Locale.Charset.encoder() , string_to_unicode() , string_to_utf8() ,
unicode_to_string()
|