RE: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-27 Thread Richard Ishida
 and  and  should always be written as entities because they will interfere 
with the syntax otherwise.  (And sometimes ). On the other hand, utf-8 should 
allow you to use actual characters for every other character you are likely to 
want to include in your content, and doing so is recommended.  See 
http://www.w3.org/International/questions/qa-escapes

Note that lt; gt; and amp; will always be recognised in HTML and XML, but 
there may be occasions when other entities are not recognised, so you may want 
to consider using NCRs (numeric character references) instead.  This is 
explained in the article above.

Btw, the latest incarnation of my Unicode code converter 
http://rishida.net/scripts/uniview/conversion allows you to do 2 useful things 
in this regard:

[1] paste some HTML into the top right field and in the top left field it will 
strip ncrs/entities apart fromand  from the HTML text 

[2] paste some HTML into the top left field and in the top right field it will 
convert all   and  characters to entities - very useful for preparing 
examples of code in HTML.


RI
 


Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/blog/
http://rishida.net/




 




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon 
Cockayne
Sent: 14 November 2007 14:42
To: wsg@webstandardsgroup.org
Subject: [WSG] Less than and greater than in UTF-8 encoded HTML


Hi,

How should I code less than  and greater than  signs in UTF-8 
encoded HTML? 

I.e. I want them to appear on the web page as follows:

...

The quick brown fox said 3 is less than 4, then he wrote 3  4. 

...


file:///C:/Program%20Files/Apache%20Software%20Foundation/Apache2.2/htdocs/PHPDEVZONE/shield/www.shield.on.ca.htm
 Cheers,

Simon



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Sébastien Sauvé
Hi Simon,

You should use HTML entities to encode those characters.

You can view a list of those entities here :
http://www.w3.org/TR/html401/sgml/entities.html

But to answer your question quickly,  should be written as gt;, and
 as lt;.

Cheers,

Sebastien

On Nov 14, 2007 9:42 AM, Simon Cockayne [EMAIL PROTECTED] wrote:

 Hi,

 How should I code less than  and greater than  signs in UTF-8
 encoded HTML?

 I.e. I want them to appear on the web page as follows:

 ...

 The quick brown fox said 3 is less than 4, then he wrote 3  4.

 ...

 Cheers,

 Simon




-- 
Sébastien Sauvé
sebastien.sauve ( at ) gmail.com
To try to be better is to be better


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


RE: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Mohamed Jama
http://www.webstandards.org/learn/reference/charts/entities/

 

Always found it to be very useful 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of James Leslie
Sent: 14 November 2007 15:08
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] Less than and greater than in UTF-8 encoded HTML

 

How should I code less than  and greater than  signs in UTF-8
encoded HTML? 

  

 

less than = lt;

greater than = gt;

 

You might find this useful:

http://leftlogic.com/lounge/articles/entity-lookup/

 

James


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Tom Roper

Simon,

Less than is lt;  and more than is qt;

So it would be The quick brown fox said 3 is less than 4, then he  
wrote 3 lt; 4.


best

Tom




On 14 Nov 2007, at 14:42, Simon Cockayne wrote:


Hi,

How should I code less than  and greater than  signs in UTF-8  
encoded HTML?


I.e. I want them to appear on the web page as follows:

...

The quick brown fox said 3 is less than 4, then he wrote 3  4.

...

Cheers,

Simon



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread James Leslie
How should I code less than  and greater than  signs in UTF-8
encoded HTML? 

  
 
less than = lt;
greater than = gt;
 
You might find this useful:
http://leftlogic.com/lounge/articles/entity-lookup/
 
James


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Mike at Green-Beast.com
Hello Simon,

 How should I code less than  and greater than  
 signs in UTF-8 encoded HTML?
 The quick brown fox said 3 is less than 4, then he wrote 3  4.

The quick brown fox said 3 is less than 4, then he wrote 3 lt; 4.

Greater than, , is written as gt;

Cheers.
Mike Cherim
http://green-beast.com




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***