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

How about special characters?

Discussion in 'XenForo Questions and Support' started by lightbox, Dec 28, 2010.

  1. lightbox

    lightbox Active Member


    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?


    PS: á, è, ô, ü, ß
  2. Shadab

    Shadab Well-Known Member

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

    lightbox Active Member

    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. :)

  4. Shadab

    Shadab Well-Known Member

    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/
    lightbox likes this.
  5. lightbox

    lightbox Active Member

    Thanks a lot for this clarification, Shadab. :)
    Shadab likes this.

Share This Page