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

Unicode Issue

Discussion in 'XenForo Development Discussions' started by silence, Jul 8, 2015.

  1. silence

    silence Well-Known Member

    I have a string that's fetched that's using special symbols.
    ツҒɛƨтιʌɛ Ғσϰ

    How can I deal with that as it won't display in XF when outputting it to a template?
     
  2. silence

    silence Well-Known Member

    Ok that's weird, maybe it's how I'm storing it?

    When I serialize it, the entire string goes away?
     
  3. Jake B.

    Jake B. Well-Known Member

    Are you using UTF8 for that field?
     
    silence likes this.
  4. silence

    silence Well-Known Member

    Yeah. utf8_general_ci.
     
  5. Jake B.

    Jake B. Well-Known Member

    Mind sharing some code and the schema for that table?
     
    silence likes this.
  6. silence

    silence Well-Known Member

    I actually think I fixed it haha!

    I switched to using json_encode and it seems to have fixed it.
     
    Jake B. likes this.
  7. silence

    silence Well-Known Member

    Thank you though so much :D
     
    Jake B. likes this.
  8. Jake B.

    Jake B. Well-Known Member

    No worries :p
     
    silence likes this.

Share This Page