fromUTF8

Syntax

fromUTF8(str, encode)

Arguments

str is a STRING scalar/vector.

encode is a string indicating the new encoding name. It must use lowercase.

Details

Convert the encoding of strings from UTF-8.

For the Windows version, encode can only be "gbk".

Examples

fromUTF8("DolphinDB","gbk");
// output
DolphinDB

fromUTF8(["hello","world"],"euc-cn");
// output
["hello","world"]