• 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
UTF8 encoding - how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UTF8 encoding - how?


  • Subject: UTF8 encoding - how?
  • From: Ken Anderson <email@hidden>
  • Date: Tue, 11 Jun 2013 16:46:20 -0400

Gang,

I've been pulling my hair out for hours… I'm hoping someone has an idea.

I'm pulling data down from Google Places that has UTF-8 encoded characters in it.  When I try to display it in WO/WOnder, the special characters turn into question marks.

I have set every imaginable value:

er.extensions.ERXApplication.DefaultMessageEncoding=UTF8

ERXResponse.setDefaultEncoding("UTF8");
ERXResponse.setDefaultHeaderEncoding("UTF8");
WOMessage.setDefaultEncoding("UTF8");

    public void takeValuesFromRequest(WORequest r, WOContext c) {
        r.setDefaultFormValueEncoding("UTF8");
        super.takeValuesFromRequest(r,c);
    }

    public void appendToResponse(WOResponse r, WOContext c) {
        r.setContentEncoding("UTF8");
        super.appendToResponse(r,c);
        r.setHeader("text/html;charset=utf-8", "Content-Type");
    }

    

    private boolean enableUTFEncoding = false;

    

    public void enableUTFEncoding() {
      enableUTFEncoding = true;
      WOMessage.setDefaultEncoding(_NSUtilities.UTF8StringEncoding);
    }


However, when I inspect the WOResponse, it says ISO-8859-1 encoding.  Any thoughts?

Thanks in advance!
Ken
 _______________________________________________
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: UTF8 encoding - how?
      • From: Alexis Tual <email@hidden>
  • Prev by Date: Re: strange optimistic locking failure
  • Next by Date: Re: UTF8 encoding - how?
  • Previous by thread: Re: Globally inspecting and conditionally altering fetch spec
  • Next by thread: Re: UTF8 encoding - how?
  • Index(es):
    • Date
    • Thread