Re: Displaying Unicode encoded characters
Re: Displaying Unicode encoded characters
- Subject: Re: Displaying Unicode encoded characters
- From: Dev WO <email@hidden>
- Date: Wed, 27 Sep 2006 13:58:30 +0200
Hello Benoit,
As long as you keep everything in UTF-8, you dont need to escape
anything in the datastore (don't use blob to store text, use
mediumtext or the like).
In addition to that, there's at least a default encoding on your text
input in the database, so storing them with \u0027 is really not
better than with the accentuated character and the right encoding;)
It might even lead to issues.
So keep everything UTF-8 (the list have many posts about that, about
connection dictionary, WOApplication and database setup).
Xavier
Cantin Benoit wrote:
Hi list,
I would like to display accentuated characted encoded in their
Unicode notation in database.
For example, I have one record containing this String in database
(French as you can see) : "Qui sont les d\u00E9tectives James
\u0027Sonny\u0027 Crockett et Ricardo Tubbs ?"
How to display "\u00E9" as a "é" and "\u0027" as a "'" ? Generally
speaking, does it seem to you to be a good solution to save
special charaters in their Unicode notation ?
Thanks,
PS : I apologize if you find that this message does not have its
place in this list. But I wonder if there is (or not) a dedicated
WO solution to my answer.
Thank you
--
Benoit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com
This email sent to 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