toUTF8#

swordfish.function.toUTF8()#

Change the encoding of strings to UTF-8.

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

参数:
  • str (Constant) -- A string scalar/vector.

  • encode (Constant) -- A string indicating the original encoding name. It must use lowercase.