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

Re: escape special characters in HTML


  • Subject: Re: escape special characters in HTML
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 16 Nov 2006 08:36:53 -0500

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

I have the Problem of not being able to encode Special character like for ex. the German ü or ä in HTML... Id need to escape them as &uuml or &auml IIRC....

You only need to use the character entities if you're using a text encoding that doesn't support those characters natively, such as ASCII.


Surely there is an easy way of doing that?

Yes, there is - don't do it at all. :-)

Just include the characters directly in your HTML, and save it using an encoding that supports them, such as ISO-8859-1 or UTF-8. You'll also want to configure your web server to return the correct Content- type charset - for example:

	Content-type: text/html; charset=ISO-8859-1

So, what was your Cocoa question?

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
  • Follow-Ups:
    • [SOLVED] Re: escape special characters in HTML
      • From: Dominik Pich <email@hidden>
References: 
 >escape special characters in HTML (From: Dominik Pich <email@hidden>)

  • Prev by Date: escape special characters in HTML
  • Next by Date: [SOLVED] Re: escape special characters in HTML
  • Previous by thread: escape special characters in HTML
  • Next by thread: [SOLVED] Re: escape special characters in HTML
  • Index(es):
    • Date
    • Thread