• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How about special characters?

lightbox

Active member
#1
Hi,

how is handling of special characters like accents aigu, grave and circonflexe, umlauts, etc. and their respective HTML entities meant to work in XenForo? As far as I can see, special characters are not converted to/from HTML entities in many places. Can this be considered bugs, or has this some other reasons worth knowing?

Also, what exactly is the DOCTYPE of XenForo pages so we can validate the pages?

Cheers,
Martin

PS: á, è, ô, ü, ß
 

Shadab

Well-known member
#2
Doctype is the HTML5 doctype, and the tags are used in xml-style format.
Code:
<!DOCTYPE html>
The character set for all pages is UTF-8:
Code:
<meta charset="utf-8" />
 

lightbox

Active member
#3
Ok, Shadab, does this mean that HTML entities (e.g. &auml; or &szlig; or &amp; ) are history, finally? If this is true, then there's one more reason for me to LOVE XenForo. :)

Cheers,
Martin
 

Shadab

Well-known member
#4
Well, you can't get rid of all the html entities. They have their place.
(check my previous post, the double quotes and angular brackets are converted)

But yeah, multi-byte characters no longer need to be converted (read: messed up) since everything, from the core framework functions to the database tables, would support utf-8 text.

Example thread:
» http://xenforo.com/community/threads/تجربة-العناوين-الطويلة-باللغة-العربية،-تجربة-الروابط-الطويلة-باللغة-العربية.951/