Hey there,
Today's post hearkens back to a post we ran back in December of 2007 regarding publishing Perl, shell and other code on Blogspot. The problem isn't really limited to blogspot.com, of course. Most sites that let you directly add content, and use a standard markup tagging system, have issues with many of the symbols found in Linux and Unix programming/shell code. I, personally, have gained a much deeper appreciation for bbcode, although it suffers from the same problems depending on what you want to "really" show on your page, just to a lesser degree.
The issue with publishing code in HTML (See, I'm going to stop kicking blogspot.com now ;) is that many of the symbols are the same as those used in the markup language itself. For instance, the < and > characters can't be written exactly as they appear when you're writing an HTML page to showcase your code, since all HTML tags (I believe ;) open with the < character and close with the > character. This can result in errors ranging from problems saving your posts to entire chunks of your code disappearing without any errors generated at all (the latter being the most disarming)
Obviously, I've been meaning to do this for a while (only 14 months from intent to action ;), but - for today - I've put together a list of common HTML character entities and how they should "really" be typed when you write your HTML. If I missed any, I'd love to hear from you, as I'd prefer for this to be a complete list, if that's at all possible :)
NOTE: Not all of these may display correctly in your web browser, since some may not be in your native character-set. Most of the fancy stuff (Greek, foreign characters, etc) was found on Elizabeth Castro's HTML XHTML Character Entity Page. Please visit that site to ensure that the information found here hasn't been expanded upon, and give her the credit she deserves for compiling so many more characters than I could ever imagine having to type :)
Enjoy, and welcome back to the work week (hopefully, you're on vacation :)
Cheers,BASIC CHARACTERS (REGULAR):
& is actually typed as: &
> is actually typed as: >
< is actually typed as: <
" is actually typed as: "
´ is actually typed as: ´
¸ is actually typed as: ¸
ˆ is actually typed as: ˆ
¯ is actually typed as: ¯
· is actually typed as: ·
˜ is actually typed as: ˜
¨ is actually typed as: ¨
° is actually typed as: °
÷ is actually typed as: ÷
½ is actually typed as: ½
¼ is actually typed as: ¼
¾ is actually typed as: ¾
≥ is actually typed as: ≥
≤ is actually typed as: ≤
− is actually typed as: −
² is actually typed as: ²
³ is actually typed as: ³
× is actually typed as: ×
¢ is actually typed as: ¢
¤ is actually typed as: ¤
€ is actually typed as: €
£ is actually typed as: £
¥ is actually typed as: ¥
¦ is actually typed as: ¦
• is actually typed as: •
© is actually typed as: ©
† is actually typed as: †
‡ is actually typed as: ‡
⁄ is actually typed as: ⁄
… is actually typed as: …
¡ is actually typed as: ¡
ℑ is actually typed as: ℑ
¿ is actually typed as: ¿
is actually typed as: ‎
— is actually typed as: —
– is actually typed as: –
¬ is actually typed as: ¬
‾ is actually typed as: ‾
ª is actually typed as: ª
º is actually typed as: º
¶ is actually typed as: ¶
‰ is actually typed as: ‰
′ is actually typed as: ′
″ is actually typed as: ″
ℜ is actually typed as: ℜ
® is actually typed as: ®
is actually typed as: ‏
§ is actually typed as: §
is actually typed as: ­
¹ is actually typed as: ¹
™ is actually typed as: ™
℘ is actually typed as: ℘
„ is actually typed as: „
« is actually typed as: «
“ is actually typed as: “
‹ is actually typed as: ‹
‘ is actually typed as: ‘
» is actually typed as: »
” is actually typed as: ”
› is actually typed as: ›
’ is actually typed as: ’
‚ is actually typed as: ‚
is actually typed as:  
is actually typed as:  
is actually typed as:
is actually typed as:  
is actually typed as: ‍
is actually typed as: ‌
SOMEWHAT IRREGULAR CHARACTERS:
Á is actually typed as: Á
á is actually typed as: á
 is actually typed as: Â
â is actually typed as: â
Æ is actually typed as: Æ
æ is actually typed as: æ
À is actually typed as: À
à is actually typed as: à
Å is actually typed as: Å
å is actually typed as: å
à is actually typed as: Ã
ã is actually typed as: ã
Ä is actually typed as: Ä
ä is actually typed as: ä
Ç is actually typed as: Ç
ç is actually typed as: ç
É is actually typed as: É
é is actually typed as: é
Ê is actually typed as: Ê
ê is actually typed as: ê
È is actually typed as: È
è is actually typed as: è
Ð is actually typed as: Ð
ð is actually typed as: ð
Ë is actually typed as: Ë
ë is actually typed as: ë
Í is actually typed as: Í
í is actually typed as: í
Î is actually typed as: Î
î is actually typed as: î
Ì is actually typed as: Ì
ì is actually typed as: ì
Ï is actually typed as: Ï
ï is actually typed as: ï
Ñ is actually typed as: Ñ
ñ is actually typed as: ñ
Ó is actually typed as: Ó
ó is actually typed as: ó
Ô is actually typed as: Ô
ô is actually typed as: ô
Œ is actually typed as: Œ
œ is actually typed as: œ
Ò is actually typed as: Ò
ò is actually typed as: ò
Ø is actually typed as: Ø
ø is actually typed as: ø
Õ is actually typed as: Õ
õ is actually typed as: õ
Ö is actually typed as: Ö
ö is actually typed as: ö
Š is actually typed as: Š
š is actually typed as: š
ß is actually typed as: ß
Þ is actually typed as: Þ
þ is actually typed as: þ
Ú is actually typed as: Ú
ú is actually typed as: ú
Û is actually typed as: Û
û is actually typed as: û
Ù is actually typed as: Ù
ù is actually typed as: ù
Ü is actually typed as: Ü
ü is actually typed as: ü
Ý is actually typed as: Ý
ý is actually typed as: ý
ÿ is actually typed as: ÿ
Ÿ is actually typed as: Ÿ
ℵ is actually typed as: ℵ
∧ is actually typed as: ∧
∠ is actually typed as: ∠
≈ is actually typed as: ≈
∩ is actually typed as: ∩
≅ is actually typed as: ≅
∪ is actually typed as: ∪
∅ is actually typed as: ∅
≡ is actually typed as: ≡
∃ is actually typed as: ∃
ƒ is actually typed as: ƒ
∀ is actually typed as: ∀
∞ is actually typed as: ∞
∫ is actually typed as: ∫
∈ is actually typed as: ∈
〈 is actually typed as: ⟨
⌈ is actually typed as: ⌈
⌊ is actually typed as: ⌊
∗ is actually typed as: ∗
µ is actually typed as: µ
∇ is actually typed as: ∇
≠ is actually typed as: ≠
∋ is actually typed as: ∋
∉ is actually typed as: ∉
⊄ is actually typed as: ⊄
⊕ is actually typed as: ⊕
∨ is actually typed as: ∨
⊗ is actually typed as: ⊗
∂ is actually typed as: ∂
⊥ is actually typed as: ⊥
± is actually typed as: ±
∏ is actually typed as: ∏
∝ is actually typed as: ∝
√ is actually typed as: √
〉 is actually typed as: ⟩
⌉ is actually typed as: ⌉
⌋ is actually typed as: ⌋
⋅ is actually typed as: ⋅
∼ is actually typed as: ∼
⊂ is actually typed as: ⊂
⊆ is actually typed as: ⊆
∑ is actually typed as: ∑
⊃ is actually typed as: ⊃
⊇ is actually typed as: ⊇
∴ is actually typed as: ∴
Α is actually typed as: Α
α is actually typed as: α
Β is actually typed as: Β
β is actually typed as: β
Χ is actually typed as: Χ
χ is actually typed as: χ
Δ is actually typed as: Δ
δ is actually typed as: δ
Ε is actually typed as: Ε
ε is actually typed as: ε
Η is actually typed as: Η
η is actually typed as: η
Γ is actually typed as: Γ
γ is actually typed as: γ
Ι is actually typed as: Ι
ι is actually typed as: ι
Κ is actually typed as: Κ
κ is actually typed as: κ
Λ is actually typed as: Λ
λ is actually typed as: λ
Μ is actually typed as: Μ
μ is actually typed as: μ
Ν is actually typed as: Ν
ν is actually typed as: ν
Ω is actually typed as: Ω
ω is actually typed as: ω
Ο is actually typed as: Ο
ο is actually typed as: ο
Φ is actually typed as: Φ
φ is actually typed as: φ
Π is actually typed as: Π
π is actually typed as: π
ϖ is actually typed as: ϖ
Ψ is actually typed as: Ψ
ψ is actually typed as: ψ
Ρ is actually typed as: Ρ
ρ is actually typed as: ρ
Σ is actually typed as: Σ
σ is actually typed as: σ
ς is actually typed as: ς
Τ is actually typed as: Τ
τ is actually typed as: τ
Θ is actually typed as: Θ
θ is actually typed as: θ
ϑ is actually typed as: ϑ
ϒ is actually typed as: ϒ
Υ is actually typed as: Υ
υ is actually typed as: υ
Ξ is actually typed as: Ξ
ξ is actually typed as: ξ
Ζ is actually typed as: Ζ
↵ is actually typed as: ↵
↓ is actually typed as: ↓
⇓ is actually typed as: ⇓
↔ is actually typed as: ↔
⇔ is actually typed as: ⇔
← is actually typed as: ←
⇐ is actually typed as: ⇐
→ is actually typed as: →
⇒ is actually typed as: ⇒
↑ is actually typed as: ↑
⇑ is actually typed as: ⇑
♣ is actually typed as: ♣
♦ is actually typed as: ♦
♥ is actually typed as: ♥
♠ is actually typed as: ♠
◊ is actually typed as: ◊
, Mike
Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.