msittig
Forum Replies Created
-
Forum: Plugins
In reply to: [Tools for Twitter] Encoding issue(?) with Twitter Tools 3.0OK I think I understood git enough to branch, commit and push the updates back to my branch. I’ve submitted a pull request to the original Twitter Tools. I’ll consider/mark this thread resolved now.
Forum: Plugins
In reply to: [Tools for Twitter] Encoding issue(?) with Twitter Tools 3.0Thank you ruanyf! You are the author of untco? I suspected strlen, but it would have taken me a long time to find mb_substr_replace.
I will now figure out how to push this back onto git and submit a pull request.
PS. This is for updating this Weibo with news from my school’s website:
http://weibo.com/u/2513119342Forum: Plugins
In reply to: [Tools for Twitter] Encoding issue(?) with Twitter Tools 3.0Looking through the code, I’m guessing it has something to do with the link_entities function in aktt_tweet.php. It seems to be populating an object (OO-code newb, can you tell?) using built-in functions like str_pad and strlen that may not play nice with UTF-8-encoded strings, and the logic of link_entities may also make some assumptions about strings and bytes that may be true about ASCII but not about UTF-8.
That said, I’m pretty sure it’s strlen.
Now, to figure out what exactly link_entities is doing, to brush up on my PHP, and to learn how to use github…
Forum: Plugins
In reply to: [Tools for Twitter] Encoding issue(?) with Twitter Tools 3.0Thanks! Checking first to make sure I didn’t miss anything obvious.
Not sure I have the time or PHP know-how to patch this, but will poke around a bit.