This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet to Display Chinese / English words in EXCEL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet to Display Chinese / English words in EXCEL" Watch "Servlet to Display Chinese / English words in EXCEL" New topic
Author

Servlet to Display Chinese / English words in EXCEL

Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
Hi
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
http://home.netvigator.com/~chenzhen1/xls.gif
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


Thanks everyone who helped me
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Servlet to Display Chinese / English words in EXCEL
 
Similar Threads
What is the best way to store List<List<String>> in database?
Upload Data in Excel file
Passing object to excel spreadsheet
close pop up window and redirect to parent window in struts2
Excel File opening