This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet to Display Chinese / English words in EXCEL  RSS feed

Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to output the data from database to a EXCEL file(the data is stored by submitting another form, including all kind of fields like textarea,etc)
Sometimes it displays correctly but sometimes don't, it displays some unknown codes like the following screen
For the above picture, you can see "(Parent)", if I change to (Parent) to another word like "Par", the words(Chinese words) in the EXCEL file will become normal, I've tried some combination like: "no"(problem arise) , "n" no problem, I have no idea at all.
I tried to enforce the coding like response.setEncodeCharacter (big5)or utf-8 or u5f-16 but no use.
How can I solve this kind of problems? Thanks
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!