0

I am using this code for encoding Japanese character in csv file:

PrintWriter writer = new PrintWriter(path + ".csv","UTF8"); 

But when my csv is downloaded in one column i am getting value like this:

丸全昭和é‹è¼¸ .

Please help me how to correct this.

tiya
  • 111
  • 1
  • 8
  • How/when are you getting this value? When you open it in your Text Editor? In Excel? You need to tell the application that reads the CSV that you are using UTF-8, as well. – Erwin Bolwidt Dec 04 '17 at 13:51
  • When i opened in Excel – tiya Dec 04 '17 at 13:52
  • I don't fully unterstand. Did you checked the written CSV-file in some editor if the characters are written correctly? You say your csv is downloaded. By what? What does column means? Is the font you use or the column-class (or whatever that is) capable of showing japanese characters? – Ralf Renz Dec 04 '17 at 13:53
  • When i downloaded my file, in excel the value is showing like this: 丸全昭和é‹è¼¸ . – tiya Dec 04 '17 at 13:57
  • If you print normal ASCII text, does that work? – phflack Dec 04 '17 at 14:01
  • Yes............ – tiya Dec 04 '17 at 14:02

0 Answers0