File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes system encoding not supported on IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "system encoding not supported on IE" Watch "system encoding not supported on IE" New topic
Author

system encoding not supported on IE

tushar bhasme
Ranch Hand

Joined: Feb 11, 2008
Posts: 50
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

Joined: Feb 11, 2008
Posts: 50
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.
 
jQuery in Action, 2nd edition
 
subject: system encoding not supported on IE