• 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
Re: sending a url with international characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending a url with international characters


  • Subject: Re: sending a url with international characters
  • From: Pierre Frisch <email@hidden>
  • Date: Mon, 15 Dec 2003 17:51:11 -0800

Hi Gino,

This is a known bug that has been corrected but the solution is poorly documented. The problem is that contrary to W3C recommendation WebObjects default URL encoding is not UTF-8 and therefore it does not work when WebObjects tries to read its own URL with non ASCII characters. You can force it to do so by adding a to the query dictionary a key "WOURLEncoding" with value "UTF-8" actualy the key String is com.webobjects.appserver_private.WOURLEncoder.PARAM_WOURLENCODING and the value should be _NSUtilities.UTF8StringEncoding. This will add a key in your URL that we guarantee the proper decoding of the values.

Pierre

On Dec 15, 2003, at 16:56, Gino Pacitti wrote:

Hi,

I had a problem with characters and was able to sort it out - so all
international characters were being saved to the database.

But I have hit an other snag:

If I have a url like ?location=D|sseldorf the German character gets
converted into #FC and when I try to use it as a query in a fetch spec
the db does not understand the resulting query. Something like (select
.... with bindings D/297sseldorf%)

I have tried all measure of things to get the query correct but cannot
get it to return the record with the field <location = D|sseldorf>

Any help would be greatly appreciated....

How do I get the query correct so that I can ask the db for a result
set based on a column with an international character?

Best

Gino
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.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/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: sending a url with international characters
      • From: Gino Pacitti <email@hidden>
References: 
 >sending a url with international characters (From: Gino Pacitti <email@hidden>)

  • Prev by Date: sending a url with international characters
  • Next by Date: Auto-Reply to: webobjects-dev digest, Vol 1 #6
  • Previous by thread: sending a url with international characters
  • Next by thread: Re: sending a url with international characters
  • Index(es):
    • Date
    • Thread