File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

system encoding not supported on IE

 
tushar bhasme
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We had an issue where the special characters were being malformed during page generation due to incorrect encoding type set on the header. To resolve the issue, we had to set the content type as: "text/html; charset=" + System.getProperty("file.encoding");

System.getProperty("file.encoding") returns CP1252 for windows which works great on firefox, but breaks on IE.

Any way to get around this?


Thanks,
Tushar
 
tushar bhasme
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some more debugging, we got to find out that the issue was that the javascript was throwing an exception while assigning the XMLHTTPResponse.responseText value:
"Could not complete the operation due to error c00ce56e". This error came right from the YUI library while reading the XMLHTTPResponse.responseText value.

If we try any encoding other than CP1252, the special characters get malformed on both IE and Firefox. Please let me know if there is any way to get the YUI work with CP1252 encoding.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic