ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

twitter_timeline converts japanese(unicode UTF-8) characters to junk characters

December 22, 2009 3:06am

Subscribe [2]
  • #1 / Dec 22, 2009 3:06am

    Asite

    15 posts

    Hi

    We have used twitter_timeline plugin to show twitter’s update, it doesn’t show Japanese characters. you can check it here

    http://www.asite.com/community

    Twitter renders them properly.

    http://twitter.com/asite

    Following is the template code

    
    
    

    Also checked the timeline xml using template log which is same as twitter.

    Please can any one guide on this.

  • #2 / Dec 22, 2009 3:50am

    John Henry Donovan

    12339 posts

    Asite,

    At the moment your template is using iso-8859-1 character encoding. Change this to UTF-8 and it should render correctly for you.

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    Change to

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  • #3 / Dec 22, 2009 5:27am

    Asite

    15 posts

    Thanks John,

    Changed charset to UTF-8 as you suggested but it didn’t work.

    If I use “&#32080;” this character (which is coming in timeline xml) directly in template, it shows proper, but twitter_timeline convert it to some other character while rendering.

  • #4 / Dec 22, 2009 4:00pm

    Ingmar

    29245 posts

    Actually, you have two lines now:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Asite Community - Collaboration, Sourcing, Contract Management, Project Management, Building Information Modeling, eProcurement, Design Management</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    Remove the first one. I have tried to view your page in “forced” utf-8 as it were, and the chars wered displaying fine (from what I can tell as a gaijin.)

  • #5 / Dec 23, 2009 2:06am

    Asite

    15 posts

    Yes it works now, Thank you Ingmar and John.

  • #6 / Dec 23, 2009 2:20am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases