• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AjaxUpdateContainer encoding issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxUpdateContainer encoding issue


  • Subject: AjaxUpdateContainer encoding issue
  • From: Peter Pritchard <email@hidden>
  • Date: Thu, 12 Jul 2007 11:29:51 -0400

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@hidden




 _______________________________________________
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

  • Follow-Ups:
    • Re: AjaxUpdateContainer encoding issue
      • From: Mike Schrag <email@hidden>
  • Prev by Date: [OT] Product Recommendations
  • Next by Date: Re: EOAndQualifier order
  • Previous by thread: Re: Localized EO
  • Next by thread: Re: AjaxUpdateContainer encoding issue
  • Index(es):
    • Date
    • Thread