• 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: String conversion with HTML entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String conversion with HTML entities


  • Subject: Re: String conversion with HTML entities
  • From: Daniel Muller <email@hidden>
  • Date: Fri, 3 Jan 2003 17:45:53 +0100

URLEncoder.encode() does only encoding for URL, for example if you have spaces or special characters,
not really for text.


I'd like to convert:

"en frangais"     ->  "en fran&ccedil;ais"
        ^                     ^^^^^^^^

"What's Up Doc?"  ->  "What&rsquo;s Up Doc?"
     ^                     ^^^^^^^

Any idea?

Thanks.
Daniel
--

On 3.01.2003, at 03:41 Art Isbell wrote:

On Thursday, January 2, 2003, at 12:13 AM, Daniel Muller wrote:

I'd like to convert string with high ascii characters with the corresponding HTML entities:

Maybe java.net.URLEncoder.encode() does what you want.
_______________________________________________
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: String conversion with HTML entities
      • From: Art Isbell <email@hidden>
References: 
 >String conversion with HTML entities (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: Which Mac for a Windows Guru?
  • Next by Date: Re: Action Method Not Invoked Inside of Conditional
  • Previous by thread: String conversion with HTML entities
  • Next by thread: Re: String conversion with HTML entities
  • Index(es):
    • Date
    • Thread