Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Displaying special characters in web pages (such as é, è etc.)

Displaying special characters in web pages (such as é, è etc.)
Thread Tools
SYN
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Feb 11, 2002, 04:07 PM
 
How do I do that?

I know I can substitute é to é for instance, but most text editors on other platforms, amongst them NotePad, do not need you to do that. You can just type the appropriate character (é in this case) and it works.

I've tried all sorts of text encodings with BBEdit, to no avail. Could anyone tell me what to do?
Soyons Réalistes, Demandons l'impossible
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Feb 11, 2002, 04:40 PM
 
Originally posted by SYN:
<STRONG>How do I do that?

I know I can substitute é to é for instance, but most text editors on other platforms, amongst them NotePad, do not need you to do that. You can just type the appropriate character (é in this case) and it works.

I've tried all sorts of text encodings with BBEdit, to no avail. Could anyone tell me what to do?</STRONG>
The official W3 standards are here, but you probably just want the goods straight up, right?

Just type the ampersand symbol in front of all these codes (I was going to do it, but this stoopid board doesn't let you escape characters )

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
eacute; = é (or &Eacute for Cap);
egrave; = è (or &Egrave for Cap);
euml; = ë ( ditto );
ecirc; = ê ( ditto) ;
ccedil; = ç (or &Ccedil) ;
copy; = ©
reg; = ®
deg; = °
divide; = ÷
</font>[/code]

You can substitute 'e' with 'a', 'i', 'o' and 'u' in the appropriate instances.

I've missed a lot of the others, so you may want to check out the W3 page if you need to know further.

[ 02-11-2002: Message edited by: Simon Mundy ]
Computer thez nohhh...
     
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Feb 12, 2002, 01:38 AM
 
Originally posted by SYN:
<STRONG>How do I do that?

I know I can substitute é to é for instance, but most text editors on other platforms, amongst them NotePad, do not need you to do that. You can just type the appropriate character (é in this case) and it works.

I've tried all sorts of text encodings with BBEdit, to no avail. Could anyone tell me what to do?</STRONG>
Erm...
The real, official way, if you're using BBEdit, is to type the characters in the normal Mac way using Option-whatever, the use the Markup -&gt; Utilities -&gt; Translate -&gt; Text to HTML command.

The fact that they *may* show up when using Windows is a complete fluke: it's VERY VERY bad to leave raw characters like that in your HTML documents since the source can get messed up. Do it the proper way with the escaped true HTML tags, and it will look correct everywhere.

Oh, except when the characters don't exist in a particular font, like thorn, oe, etc.

(Edited to fix the missing Menu step. Sorry, Syn!)

[ 02-15-2002: Message edited by: ReggieX ]
The Lord said 'Peter, I can see your house from here.'
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Feb 12, 2002, 12:25 PM
 
i knew about that, unfortunately the message board interpreted & e a c u t e ; without the spaces to the equivalent of é

as for the markup -&gt; translate command I must be stupid but I can't for the life of me locate the translate item in the markup menu un BBEdit (using 6.5)...
Soyons Réalistes, Demandons l'impossible
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 13, 2002, 02:47 PM
 
Originally posted by SYN:
<STRONG>as for the markup -&gt; translate command I must be stupid but I can't for the life of me locate the translate item in the markup menu un BBEdit (using 6.5)...</STRONG>
It's Markup/Utilities/Translate...

-
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Feb 14, 2002, 04:38 AM
 
This tells me to read the BBedit manual a bit more - have used the program for several years and never discovered that - you can always learn something new in BBedit :-)

Peter
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2