• 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: [SOLVED] Re: escape special characters in HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] Re: escape special characters in HTML


  • Subject: Re: [SOLVED] Re: escape special characters in HTML
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 16 Nov 2006 10:25:19 -0500

On Nov 16, 2006, at 9:46 AM, Dominik Pich wrote:

Am Nov 16, 2006 um 3:30 PM schrieb Sherm Pendley:

On Nov 16, 2006, at 8:55 AM, Dominik Pich wrote:

Partly helped me.. still:
to not break the markup I use CFXMLCreateStringByEscapingEntities

That's *completely* unnecessary to correctly handle umlauts. There are only five characters that must be escaped into entities in XML:


	<  ->  &lt;
	>  ->  &gt;
	&  ->  &amp;
	'  ->  &apos;
	"  ->  &quot;

The above must be escaped because they have special meaning to XML itself.

I never said I wanted to handle ONLY umlauts - I wrote e.g. and named two examples that came to mind.

Yes, but my point is that accent marks in general, or even entirely different alphabets such as Cyrillic or Hebrew, do not need to be escaped. The above five characters are all that must be escaped. For the rest, all that's needed is to inform the user-agent what encoding is being used.


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >escape special characters in HTML (From: Dominik Pich <email@hidden>)
 >Re: escape special characters in HTML (From: Sherm Pendley <email@hidden>)
 >[SOLVED] Re: escape special characters in HTML (From: Dominik Pich <email@hidden>)
 >Re: [SOLVED] Re: escape special characters in HTML (From: Sherm Pendley <email@hidden>)
 >Re: [SOLVED] Re: escape special characters in HTML (From: Dominik Pich <email@hidden>)

  • Prev by Date: Re: NSTextField & Hidden Binding Problem
  • Next by Date: Garbage collection in Leopard (not an NDA question)
  • Previous by thread: Re: [SOLVED] Re: escape special characters in HTML
  • Next by thread: Re: escape special characters in HTML
  • Index(es):
    • Date
    • Thread