 |
 |
Displaying special characters in web pages (such as é, è etc.)
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Paris, France
Status:
Offline
|
|
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
|
|
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 É for Cap);
egrave; = è (or È for Cap);
euml; = ë ( ditto );
ecirc; = ê ( ditto) ;
ccedil; = ç (or Ç) ;
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
|
|
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 -> Utilities -> Translate -> 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.'
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Paris, France
Status:
Offline
|
|
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 -> 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
|
|
Originally posted by SYN:
<STRONG>as for the markup -> 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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|