FORMfields, the premiere web framework.
FORMfields - HTML Special Characters
Info
All the HTML used with FORMfields should be encoded using UTF-8 (Unicode Transformation Format). UTF-8 is a character set that encompasses many of the world's writing systems and has quickly become the web standard.

When an element of FORMfields requires HTML, you should either:

  • Use FORMgen to edit your form as FORMgen is UTF-8 compatible. You can use any UTF-8 character like, "ù", "ç", etc... for any field value, field label, etc...
  • If you need to edit your form manually, you should use a text editor that can properly edit in UTF-8. Then, you can enter UTF-8 characters into any FORMfields elements that require UTF-8.
    For example:
    $ffForm->addField(new TextField("name","ù", FORM_FIELD_REQUIRED, 21, 1, null));
    $ffForm->setHelp("name", "ç");
    $ffForm->setValue("name", "ç");
    We highly recommend the free text editor, JEdit.
  • You can also enter the NCR (Numeric Character Reference — see below) for the UTF-8 character, however this should only be used for display purposes as PHP does not consider a NCR equal to the UTF-8 character it represents. For example you could use:
    $ffForm->setHelp("name", "ç");
    but, DO NOT USE:
    $ffForm->setValue("name", "ç");
    as PHP does not consider "ç" equal to "ç"
Popular UTF-8 NCRs (Numeric Character References)
Character Code
‘
’
‚
“
”
„
†
‡
‰
‹
›
♠
♣
♥
♦
‾
←
↑
→
↓
™
[tab]
	
[space]
 
!
!
"
"
#
#
$
$
%
%
&
&
'
'
(
(
)
)
*
*
+
+
,
,
-
-
.
.
⁄
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
:
:
;
&#59;
<
&lt;
=
&#61;
>
&gt;
?
&#63;
Character Code
@
&#64;
A
&#65;
B
&#66;
C
&#67;
D
&#68;
E
&#69;
F
&#70;
G
&#71;
H
&#72;
I
&#73;
J
&#74;
K
&#75;
L
&#76;
M
&#77;
N
&#78;
O
&#79;
P
&#80;
Q
&#81;
R
&#82;
S
&#83;
T
&#84;
U
&#85;
V
&#86;
W
&#87;
X
&#88;
Y
&#89;
Z
&#90;
[
&#91;
\
&#92;
]
&#93;
^
&#94;
_
&#95;
`
&#96;
a
&#97;
b
&#98;
c
&#99;
d
&#100;
e
&#101;
f
&#102;
g
&#103;
h
&#104;
i
&#105;
j
&#106;
k
&#107;
l
&#108;
m
&#109;
n
&#110;
o
&#111;
p
&#112;
q
&#113;
r
&#114;
s
&#115;
t
&#116;
u
&#117;
Character Code
v
&#118;
w
&#119;
x
&#120;
y
&#121;
z
&#122;
z
&#122;
{
&#123;
|
&#124;
}
&#125;
~
&#126;
&ndash;
&mdash;
[nonbreaking space]
&nbsp;
¡
&iexcl;
¢
&cent;
£
&pound;
¤
&curren;
¥
&yen;
¦
&brvbar;
§
&sect;
¨
&uml;
©
&copy;
ª
&ordf;
«
&laquo;
¬
&not;
­
&shy;
®
&reg;
¯
&macr;
°
&deg;
±
&plusmn;
²
&sup2;
³
&sup3;
´
&acute;
µ
&micro;
&para;
·
&middot;
¸
&cedil;
¹
&sup1;
º
&ordm;
»
&raquo;
¼
&frac14;
½
&frac12;
¾
&frac34;
¿
&iquest;
À
&Agrave;
Á
&Aacute;
Â
&Acirc;
Ã
&Atilde;
Ä
&Auml;
Å
&Aring;
Æ
&AElig;
Ç
&Ccedil;
È
&Egrave;
É
&Eacute;
Character Code
Ê
&Ecirc;
Ë
&Euml;
Ì
&Igrave;
Í
&Iacute;
Î
&Icirc;
Ï
&Iuml;
Ð
&ETH;
Ñ
&Ntilde;
Ò
&Ograve;
Ó
&Oacute;
Ô
&Ocirc;
Õ
&Otilde;
Ö
&Ouml;
×
&times;
Ø
&Oslash;
Ù
&Ugrave;
Ú
&Uacute;
Û
&Ucirc;
Ü
&Uuml;
Ý
&Yacute;
Þ
&THORN;
ß
&szlig;
à
&agrave;
á
&aacute;
â
&acirc;
ã
&atilde;
ä
&auml;
å
&aring;
æ
&aelig;
ç
&ccedil;
è
&egrave;
é
&eacute;
ê
&ecirc;
ë
&euml;
ì
&igrave;
í
&iacute;
î
&icirc;
ï
&iuml;
ð
&eth;
ñ
&ntilde;
ò
&ograve;
ó
&oacute;
ô
&ocirc;
õ
&otilde;
ö
&ouml;
÷
&divide;
ø
&oslash;
ù
&ugrave;
ú
&uacute;
û
&ucirc;
ü
&uuml;
ý
&yacute;
þ
&thorn;
ÿ
&yuml;
Info
Most languages contain their own NCRs. In the interest of making this page readable, we have not included them here. We suggest that you browse the web for a document that outlines the NCRs in your language.
Copyright © 2005-2007 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.