Strange encoding behavior using Project Wonder

Dev WO <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
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 protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.