• 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: Displaying Unicode encoded characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Displaying Unicode encoded characters (From: Cantin Benoit <email@hidden>)
 >Re: Displaying Unicode encoded characters (From: Cantin Benoit <email@hidden>)

  • Prev by Date: Re: EO/Java class default Values
  • Next by Date: Re: Converting a .strings text file to a NSArray or NSDictionary
  • Previous by thread: Re: Displaying Unicode encoded characters
  • Next by thread: Transitive dependencies for WebObjects libs
  • Index(es):
    • Date
    • Thread