Re: sending a url with international characters
Re: sending a url with international characters
- Subject: Re: sending a url with international characters
- From: "Jonathan Fleming" <email@hidden>
- Date: Tue, 16 Dec 2003 09:51:12 +0000
From: Pierre Frisch <email@hidden>
To: email@hidden
CC: email@hidden
Subject: Re: sending a url with international characters
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"
Would it be a good move to include the above key and value in your app's
EOModel dictionary anyway regardless of whether you think you need it or not
or is there some kind of performance issue behind it.
Seeing this post has made me think ahead.
Jonathan :^)
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.
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
_______________________________________________
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.