convertEncode#

swordfish.function.convertEncode()#

Change the encoding of strings. All encoding names must use lowercase. The Linux version supports conversion between any two encodings. The Windows version only supports conversion between GBK and UTF-8.

Parameters:
  • str (Constant) – A STRING scalar/vector, a dictionary with string values, or a table.

  • srcEncode (Constant) – A string indicating the original encoding name.

  • destEncode (Constant) – A string indicating the new encoding name.