This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

sql to excel with java character problem.  RSS feed

 
Doug Douglas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
Non-English Values are looking like upside with their charsets.

"application/vnd.ms-excel; charset=cp1254";

Values on Excel is : ??? ??? ??? ??? ???

"application/vnd.ms-excel; charset=UTF-8";

Values on Excel is : ÊÖÇÑÈ ÊæŞÚÇÊ ÔåÑ ÃßÊæÈÑ İí ÓæŞ ÇáÜPP

If I open excel and import it with utf-8,values looks great,but everytime opening file with importing is problem for customers. I found this code below written with ASP.NET,but couldnt write with JAVA. Also I am not sure this code will solve my problem.
Response.ContentEncoding = System.Text.Encoding.Default;
 
Vijay Tidake
Ranch Hand
Posts: 148
Hibernate Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

try the example int this thread.

Hope this helps.
Thanks
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!