Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

UTF-8 Encoding

UTF-8 Encoding

UTF-8 Encoding

PHPFusion are using UTF-8 for it´s file encodings and the Database encodings as default from PHPFusion 9.0.

Unicode Transformation Format 8-bit - (UTF-8)
Unicode Transformation Format 8-bit is a variable-width encoding that can represent every character in the Unicode character set.
It was designed for backward compatibility with ASCII and to avoid the complications of endianness and byte order marks in UTF-16 and UTF-32.

UTF-8 encodes each Unicode character as a variable number of 1 to 4 octets, the number of octets depends on the integer value assigned to the Unicode character.
It is an efficient encoding of Unicode documents that use mostly US-ASCII characters because it represents each character in the range U+0000 through U+007F as a single octet.
UTF-8 is the standard encoding for XML and since 2010 has become the dominant character set on the Web.


Byte Order Mark - (BOM)
PHPFusion´s file encoding should not contain a BOM signature.
A byte order mark (BOM) can be used as a signature defining the byte order and encoding form, primarily of unmarked plaintext files.
Under some higher level protocols, use of a BOM may be mandatory (or prohibited) in the Unicode data stream defined in that protocol.
BOM can be used as a signature no matter how the Unicode text is transformed.


Configurations
The MIME character set attribute for UTF-8 is UTF-8. Character sets are case-insensitive, so utf-8 is equally valid.

In a modern HTML 5 page, place this tag inside <head> ... </head>:
Code
<meta charset="UTF-8">


For older HTML 4.0.1 pages, use this:
Code
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">


In an XML prolog, the encoding is typically specified as an attribute:
Code
<?xml version="1.0" encoding="UTF-8" ?>


In Apache server config or .htaccess, this will cause the HTTP header to be generated for text/html and text/plain content:
Code
AddDefaultCharset UTF-8