This post should be on the wonder list, but the correct fix for using
UTF-8 (and there may be a properties entry for this also, but I
didn't notice it) is in your application constructor (assuming you
extend ERXApplication), call:
installDefaultEncoding("UTF-8");
This sets all of the properties you will need (well, other than
ERJavaMail -- er.javamail.defaultEncoding=UTF-8 for that).
ms
On Jul 12, 2007, at 11:29 AM, Peter Pritchard wrote:
I apologize in advance if this has been discussed already ...
I have had an issue where umlauts and the such are displayed
properly when first displayed, and then replaced by a '?' after the
AjaxUpdateContainer refreshes the div ...
When I decided it was time to figure out that issue, I traced it to
the fact that AjaxUtils.java's version of createResponse() sets the
content-type to 'text/plain' ...
... so as not to break any other code, I decided to hack the
AjaxUpdateContainer's handleRequest function instead ... because
AjaxUtils version is used throughout the framework (and in my own
code as well) ...
right after the response object is created, I added this line ...
(line ~145)
response.setHeader("text/html; charset=utf-8", "content-
type");
and now everything work just fine ...
I submitted a bug report on the project wonder source forge page,
but some of the bugs go back to 2002 ... so I wasn't sure if anyone
looked at that list anymore ...
Anyone else have a better fix or know how to avoid the issue
altogether?
- Peter Pritchard
[EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%
40mdimension.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]