Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

sql to excel with java character problem.

 
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