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

How does xenforo handle character encoding?

Discussion in 'XenForo Questions and Support' started by Member 3639, Dec 1, 2012.

  1. Member 3639

    Member 3639 Active Member

    I am trying to write an importer from a news forum to my website and the character encoding is really getting me frustrated.

    It seems that xenforo somehow accepts multiple types of characters. While the page and database are UTF-8, it manages to display non utf-8 characters correctly in posts, how?

    How does xenforo handle character encoding? As when I show some of the posts some content shows up as a black diamond with a question mark inside it. I cannot figure out how to get it to display correctly.
  2. HWS

    HWS Well-Known Member

    If you can see non-UTF-8 characters in your browser your browser is simply most likely set to the correct character set for those characters. ;)
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The import scripts use a convert function where appropriate:


Share This Page