Tags:
internationalization1Add my vote for this tag create new tag
, view all tags
ALERT! NOTE: This is a SupplementalDocument topic which is not included with the official TWiki distribution. Please help maintain high quality documentation by fixing any errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below! Use the Support web for problems you are having using TWiki.

Entities for Special Characters and Symbols

Not all characters will display across all browsers. The Hex version in particular does not appear to be very compatible across browsers. It is therefore a better idea to use the Entity or Decimal versions (which seem to work in IE 6.x). The numeric value of the entities is the Unicode codepoint of the character.

Character You Type Displays
Entity Decimal Hex Entity Decimal Hex
left single quotation mark ‘ ‘ ‘
right single quotation mark ’ ’ ’
single low-9 quotation mark ‚ ‚ ‚
left double quotation mark “ “ “
right double quotation mark ” ” ”
double low-9 quotation mark „ „ „
Latin small f with hook = function = florin ƒ ƒ ƒ ƒ ƒ ƒ
Greek capital letter alpha Α Α Α Α Α Α
Greek capital letter beta Β Β Β Β Β Β
Greek capital letter gamma Γ Γ Γ Γ Γ Γ
Greek capital letter delta Δ Δ Δ Δ Δ Δ
Greek capital letter epsilon Ε Ε Ε Ε Ε Ε
Greek capital letter zeta Ζ Ζ Ζ Ζ Ζ Ζ
Greek capital letter eta Η Η Η Η Η Η
Greek capital letter theta Θ Θ Θ Θ Θ Θ
Greek capital letter iota Ι Ι Ι Ι Ι Ι
Greek capital letter kappa Κ Κ Κ Κ Κ Κ
Greek capital letter lambda Λ Λ Λ Λ Λ Λ
Greek capital letter mu Μ Μ Μ Μ Μ Μ
Greek capital letter nu Ν Ν Ν Ν Ν Ν
Greek capital letter xi Ξ Ξ Ξ Ξ Ξ Ξ
Greek capital letter omicron Ο Ο Ο Ο Ο Ο
Greek capital letter pi Π Π Π Π Π Π
Greek capital letter rho Ρ Ρ Ρ Ρ Ρ Ρ
Greek capital letter sigma Σ Σ Σ Σ Σ Σ
Greek capital letter tau Τ Τ Τ Τ Τ Τ
Greek capital letter upsilon Υ Υ Υ Υ Υ Υ
Greek capital letter phi Φ Φ Φ Φ Φ Φ
Greek capital letter chi Χ Χ Χ Χ Χ Χ
Greek capital letter psi Ψ Ψ Ψ Ψ Ψ Ψ
Greek capital letter omega Ω Ω Ω Ω Ω Ω
Greek small letter alpha α α α α α α
Greek small letter beta β β β β β β
Greek small letter gamma γ γ γ γ γ γ
Greek small letter delta δ δ δ δ δ δ
Greek small letter epsilon ε ε ε ε ε ε
Greek small letter zeta ζ ζ ζ ζ ζ ζ
Greek small letter eta η η η η η η
Greek small letter theta θ θ θ θ θ θ
Greek small letter iota ι ι ι ι ι ι
Greek small letter kappa κ κ κ κ κ κ
Greek small letter lambda λ λ λ λ λ λ
Greek small letter mu μ μ μ μ μ μ
Greek small letter nu ν ν ν ν ν ν
Greek small letter xi ξ ξ ξ ξ ξ ξ
Greek small letter omicron ο ο ο ο ο ο
Greek small letter pi π π π π π π
Greek small letter rho ρ ρ ρ ρ ρ ρ
Greek small letter final sigma ς ς ς ς ς ς
Greek small letter sigma σ σ σ σ σ σ
Greek small letter tau τ τ τ τ τ τ
Greek small letter upsilon υ υ υ υ υ υ
Greek small letter phi φ φ φ φ φ φ
Greek small letter chi χ χ χ χ χ χ
Greek small letter psi ψ ψ ψ ψ ψ ψ
Greek small letter omega ω ω ω ω ω ω
Greek small letter theta symbol ϑ ϑ ϑ ϑ ϑ ϑ
Greek upsilon with hook symbol ϒ ϒ ϒ ϒ ϒ ϒ
Greek pi symbol ϖ ϖ ϖ ϖ ϖ ϖ
bullet = black small circle • • •
horizontal ellipsis = three dot leader … … …
prime = minutes = feet ′ ′ ′
double prime = seconds = inches ″ ″ ″
overline = spacing overscore ‾ ‾ ‾
fraction slash ⁄ ⁄ ⁄
script capital P = power set = Weierstrass p ℘ ℘ ℘
blackletter capital I = imaginary part ℑ ℑ ℑ
blackletter capital R = real part symbol ℜ ℜ ℜ
trade mark sign ™ ™ ™
alef symbol = first transfinite cardinal ℵ ℵ ℵ
leftwards arrow ← ← ←
upwards arrow ↑ ↑ ↑
rightwards arrow → → →
downwards arrow ↓ ↓ ↓
left right arrow ↔ ↔ ↔
downwards arrow with corner leftwards = carriage return ↵ ↵ ↵ &#x21B5
leftwards double arrow ⇐ ⇐ ⇐
upwards double arrow ⇑ ⇑ ⇑
rightwards double arrow ⇒ ⇒ ⇒
downwards double arrow ⇓ ⇓ ⇓
left right double arrow ⇔ ⇔ ⇔
for all ∀ ∀ ∀
partial differential ∂ ∂ ∂
there exists ∃ ∃ ∃
empty set = null set = diameter ∅ ∅ ∅
nabla = backward difference ∇ ∇ ∇
element of ∈ ∈ ∈
not an element of ∉ ∉ ∉
contains as member ∋ ∋ ∋
n-ary product = product sign ∏ ∏ ∏
n-ary sumation ∑ ∑ ∑
minus sign − − −
asterisk operator ∗ ∗ ∗
square root = radical sign √ √ √
proportional to ∝ ∝ ∝
infinity ∞ ∞ ∞
angle ∠ ∠ ∠
logical and = wedge ∧ ∧ ∧
logical or = vee ∨ ∨ ∨
intersection = cap ∩ ∩ ∩
union = cup ∪ ∪ ∪
integral ∫ ∫ ∫
therefore ∴ ∴ ∴
tilde operator = varies with = similar to ∼ ∼ ∼
approximately equal to ≅ ≅ ≅
almost equal to = asymptotic to ≈ ≈ ≈
not equal to ≠ ≠ ≠
identical to ≡ ≡ ≡
less-than or equal to ≤ ≤ ≤
greater-than or equal to ≥ ≥ ≥
subset of ⊂ ⊂ ⊂
superset of ⊃ ⊃ ⊃
not a subset of ⊄ ⊄ ⊄
subset of or equal to ⊆ ⊆ ⊆
superset of or equal to ⊇ ⊇ ⊇
circled plus = direct sum ⊕ ⊕ ⊕
circled times = vector product ⊗ ⊗ ⊗
up tack = orthogonal to = perpendicular ⊥ ⊥ ⊥
dot operator ⋅ ⋅ ⋅
left ceiling = APL upstile ⌈ ⌈ ⌈
right ceiling ⌉ ⌉ ⌉
left floor = APL downstile ⌊ ⌊ ⌊
right floor ⌋ ⌋ ⌋
left-pointing angle bracket = bra ⟨ 〈 〈
right-pointing angle bracket = ket ⟩ 〉 〉
lozenge ◊ ◊ ◊
black spade suit ♠ ♠ ♠
black club suit = shamrock ♣ ♣ ♣
black heart suit = valentine ♥ ♥ ♥
black diamond suit ♦ ♦ ♦

The original version of this table is WDG's Entities for Symbols and Greek Letters page.

-- Contributors: AmandaSmith, PeterThoeny



Comments & Questions about this Supplemental Document Topic

I added a SupplementalDocHeader, I hope this is appropriate. If not, feel free to remove.

-- AmandaSmith - 20 Feb 2006

It's worth pointing out that the numeric versions of these 'character references' are just the Unicode codepoint of the character (even if the web page is using a non-Unicode character). Once we have real UnicodeSupport, sites using alphabetic languages (i.e. not just Chinese, Japanese etc) can start using UTF-8 as the site character set, and there won't be much need to use these XML entities (aka character references).

Generally, the decimal numeric character references are the most compatible with various browsers.

Also, there's a missing TWiki feature here: in SVN:lib/TWiki.pm for DEVELOP at line 1947, it should handle the &x39F; hex format, but doesn't. Something like the following should work (not fully tested but works from command line):

       $text =~ s/&#x?([0-9a-f]+);/chr($1)/ige;

Character references can cause problems with Codev.RSS and Atom feeds, since the HTML content of the page used to form the feed is actually in two character sets - so it's important to strip out or convert the Unicode characters to something else, or (more usefully) convert the entire page to UTF-8 for use in the feed.

It's debatable as to why entityDecode exists at all, probably something to do with RSS, but for other uses of TWiki it would be best not to decode the entities at all in TWiki.

For other discussion on NCRs, see Google:twiki+numeric+character+reference.

-- RichardDonkin - 21 Feb 2006

Yes, I've skimmed a number of articles on this topic already. But the fact remains that a lot of people at my installation will need to use a lot of special characters and I'll have to provide support for them now, so I went ahead and put this together. smile

-- AmandaSmith - 21 Feb 2006

Thanks for contributing this documentation. It might help to add some links to this topic to find it, such as links from other SupplementalDocument topics, and Interwiki links from the official docs.

While we are at it, it might help to add two more tables to this topic:

-- PeterThoeny - 22 Feb 2006

Please use the Support forum if you have questions about TWiki features. This comment section is about the documentation of this topic.
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-04-13 - FranzJosefSilli
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.