Re: Strange encoding behavior using Project Wonder
Re: Strange encoding behavior using Project Wonder
- Subject: Re: Strange encoding behavior using Project Wonder
- From: Fabian Peters <email@hidden>
- Date: Sat, 7 Oct 2006 18:27:08 +0200
Hi Xavier,
Try to remove your overrides and set
er.extensions.ERXApplication.DefaultMessageEncoding=UTF8
in your Properties file.
HTH
Fabian
Am 07.10.2006 um 18:09 schrieb Dev WO:
Hi,
I'm starting using PW for this application. So far everything went
smoothly and I was able to do some nice things thanks to PW
frameworks:)
But I'm having some sort of encoding issue...
Everything is supposed to be UTF-8, the HTML, etc.
I also have the following for Application.java:
public void appendToResponse(WOResponse response, WOContext
wocontext) {
super.appendToResponse(response, wocontext);
// This must be done after the page generation to override the
default header created by WO during the page generation.
if (_NSUtilities.UTF8StringEncoding.equals
(response.contentEncoding()))
response.setHeader("text/html; charset=UTF-8", "content-type");
}
public WOResponse createResponseInContext(WOContext wocontext) {
WOResponse woresponse = super.createResponseInContext(wocontext);
woresponse.setContentEncoding(_NSUtilities.UTF8StringEncoding);
return woresponse;
}
and in session.java:
public void takeValuesFromRequest(WORequest aRequest, WOContext
aContext){
aRequest.setDefaultFormValueEncoding
(_NSUtilities.UTF8StringEncoding);
super.takeValuesFromRequest(aRequest, aContext);
}
but If I look at the request-response, I have:
content-type = ("text/html; charset=iso-8859-1");
and
defaultFormValueEncoding=ISO8859_1
formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1
I don't have this issue without linking to the PW frameworks.
I think maybe there's something specific to PW to set the default
encoding for request-response...
Thanks for your help
Xavier
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden