Home > Software design >  Google Sheets - how do you open a CSV with Chinese characters in Unicode?
Google Sheets - how do you open a CSV with Chinese characters in Unicode?

Time:03-25

I have a CSV file with Chinese characters in it. The Chinese characters are encoded in Unicode (for example 香).

How can I open or import this CSV file in Google Sheets, and have the Chinese characters display correct, I mean to have the Chinese characters display as the actual Chinese characters (for example 香 should be displayed as 香)?

Part of my CSV, with Chinese characters encoded in Unicode

If Google sheets cannot decode and display the Unicode in actual Chinese characters, then, can Excel do it?

The following is a very simple example, of such a CSV file content, just two lines.

Product Title
香辣猪

CodePudding user response:

Decode with

function decode(code = '香'){
  var char = String.fromCharCode(code.match(/&#(\d );/)[1]);
  console.log(char)
}

enter image description here

enter image description here

  • Related