• Resolved laouran

    (@laouran)


    Hello,

    I’m french, and your nice plugin didn’t encode the spécial accents from tweeter, i had to add a line in function kebo_twitter_linkify($tweets).

    ` // Encode Special Chars
    $tweet->text = htmlentities ($tweet->text) ;
    $tweet->text = htmlspecialchars ($tweet->text);// here

    Thanx

    http://wordpress.org/plugins/kebo-twitter-feed/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter laouran

    (@laouran)

    I think i get abuse by transient/cache , i only need the htmlspecialchars transformation. ( removing htmlentities )

    Plugin Author Peter Booker

    (@peterbooker)

    Hi laouran,

    Thanks for letting us know. The latest version actually changed that code to:

    // Encode Special Chars
    $tweet->text = utf8_encode($tweet->text);

    Does version 0.5.10 display the characters properly for you? If not I need to continue looking at the character encoding issue, but testing seemed to suggest it was working properly in 0.5.10!

    Thread Starter laouran

    (@laouran)

    upgrade done, it’s fine now on 0.5.10 !
    Thanks Peter.

    Plugin Author Peter Booker

    (@peterbooker)

    Hi laouran,

    Brilliant, thanks for letting us know, im glad it works now!

    Thread Starter laouran

    (@laouran)

    Back on my site today, i find out characters were bad again… arg !

    So, i manage to get it right by bypassing our utf8_encode…
    Seems that the tweets were in utf8, and don’t even need a htmlspecialchars !
    ( I don’t have time to fully understand the whole thing, but i bet it’s work through json_encode witch compute only utf8 data. )

    Looking around, i found this : http://www.phpriot.com/articles/php-twitter-api-screencast
    So a i had a final htmlspecialchars() function after, just in case.

    so :

    // Encode Special Chars
     //   $tweet->text = utf8_encode($tweet->text);  // no need
     $tweet->text =  htmlspecialchars($tweet->text ) ;// just in case !

    hope it helps.

    Plugin Author Peter Booker

    (@peterbooker)

    Hi laouran,

    Thanks for letting us know there is still a problem. Would you be able to give me an example of which characters were not working? I would like to be able to test using those characters in the future, to make sure this doesn’t happen.

    Thread Starter laouran

    (@laouran)

    Hi Peter,

    This happens only with with the french special chars :).

    A sentence with accents ( in bold ) :
    Un conseiller juriste se tiendra gratuitement à la disposition des Bigoudens, mercredi 4 septembre au siège de la… http://t.co/sTxzAifoNK 02 sept 2013 16:51

    Thanx to you

    Plugin Author Peter Booker

    (@peterbooker)

    Hi laouran,

    Sorry for the slow reply. That was really useful, hopefully we will have an update out today which fixes the character encoding problems completely.

    Thanks again for all your help troubleshooting.

    Plugin Author Peter Booker

    (@peterbooker)

    Hi laouran,

    We have just updated to 0.5.11 which uses the htmlspecialchars function, but also specifies the encoding type (UTF8). Hopefully this will be compatible with all versions of PHP, I would be really grateful if you could try it out and let me know.

    I also noticed that the update to 0.5.10 had not completely worked on wordpress.org, so that might have been the cause of the problems.

    Hi,

    I am running 0.5.11 – looks good and works well except it displays “&” as html &.

    Any ideas?

    Thanks!

    Plugin Author Peter Booker

    (@peterbooker)

    Thank you for letting us know loneprairie, I get the same thing. I have just found a fix for it, which I will test in the morning and then push out.

    Thank you very much!

    Plugin Author Peter Booker

    (@peterbooker)

    Just pushed out the update to 0.5.12, which should decode the html chars like & into & correctly.

    Perfect – thank you!

    Thread Starter laouran

    (@laouran)

    Gone a few days and i’m in version 0.5.13 !
    It’s all good for me too.
    Excellent !!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Problems with spécials characters’ is closed to new replies.