|
In lugnet.off-topic.test, David Eaton writes:
> In lugnet.off-topic.test, Søren Bak writes:
> > æ<br>
> > ø<br>
> > ®
>
> but you'll notice using the numeric entity codes will change it when it
> gets displayed in html, not the named entity stuff! I.E:
> & # 1 6 3 ;
> when written without the spaces turns into:
> £
> which is the symbol! (if you're reading this in the HTML... dunno what it
> looks like in a newsreader) but £ won't do it... Unless of course
> Todd's changed this since I did it last! :)
Nope, there aren't any HTML entities (numeric or non-numeric) that are
handled. By design, if you type '&', it's *always* converted to '&'
by the web display interface, meaning that if you type 'æ' in your
article, then the HTML generated is '&aelig;' -- which is exactly how
it should be, because netnews articles are supposed to be plaintext, not
HTML.
So, for news articles, just use the plain raw 8-bit ISO-8859-1 encoding:
Don't write Do write
----------- --------
æ æ
ø ø
® ®
£ £
Then it will come out correctly. For example, if you write 'æ' in your news
article, then it will be sent to newsreaders as 'æ' and to web browsers as
'æ' (so that it may display properly as 'æ'). But if you accidentally
write 'æ' in your news article, then it will be sent to your newsreader
as 'æ' but to your web browser as '&aelig;' in order that it may
display exactly properly as you wrote it, e.g., 'æ'.
Again, this is by design. It would be a bug not to convert '&' to '&',
just as it would be a bug not to convert '<' to '<', etc...
--Todd
|
|
Message has 1 Reply: | | Re: Just testing character codes
|
| (...) Hmm.... maybe it's something to do with how you're parsing web-input? I'm using the web interface to enter messages, and I'm typing: & # 1 6 3 ; (but without the spaces) and it comes out as a single character (the pound sign: "£") when I view (...) (25 years ago, 28-Sep-99, to lugnet.off-topic.test, lugnet.publish)
|
Message is in Reply To:
| | Re: Just testing character codes
|
| (...) but you'll notice using the numeric entity codes will change it when it gets displayed in html, not the named entity stuff! I.E: & # 1 6 3 ; when written without the spaces turns into: £ which is the symbol! (if you're reading this in the (...) (25 years ago, 28-Sep-99, to lugnet.off-topic.test)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|