To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.testOpen lugnet.off-topic.test in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Testing / 736
735  |  737
Subject: 
Re: Just testing character codes
Newsgroups: 
lugnet.off-topic.test, lugnet.publish
Date: 
Tue, 28 Sep 1999 17:40:13 GMT
Viewed: 
672 times
  
In lugnet.off-topic.test, David Eaton writes:
In lugnet.off-topic.test, Søren Bak writes:
&aelig;<br>
&oslash;<br>
&reg;

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 &pound; 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 '&amp;'
by the web display interface, meaning that if you type '&aelig;' in your
article, then the HTML generated is '&amp;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
   -----------     --------
     &aelig;          æ
     &oslash;         ø
     &reg;            ®
     £           £

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
'&aelig;' (so that it may display properly as 'æ').  But if you accidentally
write '&aelig;' in your news article, then it will be sent to your newsreader
as '&aelig;' but to your web browser as '&amp;aelig;' in order that it may
display exactly properly as you wrote it, e.g., '&aelig;'.

Again, this is by design.  It would be a bug not to convert '&' to '&amp;',
just as it would be a bug not to convert '<' to '&lt;', 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR