Recent activity
Subscribe to this feed
kenn replied on April 19, 2009 18:41 to the question "International characters are garbled at Twitter" in Pikchur:
Now here's another thing:
http://pikchur.com/0w3
http://twitter.com/a_twitter/status/1...
Compare text in those URLs. As you can see, on Twitter, the message text was truncated at a wrong position - in the middle of an atomic character somewhere between 18th and 19th character, which not only makes the last character broken, but makes Pikchur pretty much unusable with CJKV because you can't say much in 18 characters.
I guess that's because you count characters based on bytes? FYI, one Japanese character is typically comprised of 3 bytes in UTF-8, and for what it's worth, if you use some sort of JSON library, it's encoded like "\u3042" which goes up to 6 bytes per character.
On Ruby 1.8.x, use of $KCODE and split(//) should do the trick.
$ irb
>> $KCODE="UTF8"
=> "UTF8"
>> "ああああああああああ".length
=> 30
>> "ああああああああああ".split(//).length
=> 10
>> "ああああああああああ".split(//)
=> ["あ", "あ", "あ", "あ", "あ", "あ", "あ", "あ", "あ", "あ"]
>> "ああああああああああ".split(//)[0..4].join
=> "あああああ"
If you run MySQL, it's notorious for the complicated setting with the default of latin-1 and to make everything work under UTF-8 you need 2 lines under [mysqld] section in my.cnf.
[mysqld]
default-character-SET = utf8
skip-character-set-client-handshake
See:
http://word.wardosworld.com/?p=164
Hope this helps.
kenn replied on April 17, 2009 15:29 to the question "International characters are garbled at Twitter" in Pikchur:
kenn replied on April 16, 2009 16:58 to the question "International characters are garbled at Twitter" in Pikchur:
kenn asked a question in Pikchur on April 16, 2009 00:38:
International characters are garbled at TwitterInternational characters are garbled at Twitter, however they look fine on Pikchur. So there must be something between Pikchur and Twitter API.
http://twitter.com/a_twitter/status/1...
kenn replied on January 12, 2009 19:54 to the problem "International characters are not displayed" in Bryan Bartow:
kenn shared an idea in Bryan Bartow on January 11, 2009 03:16:
kenn replied on January 10, 2009 08:48 to the problem "International characters are not displayed" in Bryan Bartow:
kenn replied on January 10, 2009 08:38 to the idea "It'd be nice if you can close the conversation viewer by ESC key." in Bryan Bartow:
kenn reported a problem in Bryan Bartow on January 10, 2009 08:22:
International characters are not displayedInternational characters are not displayed. Compare the following screenshot with http://rejaw.com/YungSang, for instance.
kenn replied on January 10, 2009 01:40 to the problem "Mouse wheel support." in Bryan Bartow:
kenn reported a problem in Bryan Bartow on January 10, 2009 00:56:
The shout form disappears when the window size is smallThe shout form disappears when the window size is small
kenn reported a problem in Bryan Bartow on January 10, 2009 00:53:
kenn shared an idea in Bryan Bartow on January 10, 2009 00:52:
It'd be nice if you can close the conversation viewer by ESC key.It'd be nice if you can close the conversation viewer by ESC key.
kenn reported a problem in Bryan Bartow on January 10, 2009 00:51:
Mouse wheel support.Mouse wheel doesn't work, if your mouse is on a message area.
kenn replied on January 10, 2009 00:47 to the problem "Shout too wide, causing scroll bars" in Bryan Bartow:
-
kenn started following the problem "Shout too wide, causing scroll bars" in Bryan Bartow.
A comment on the question "Secondary password for Rejaw" in tarpipe:
Fantastic! Thanks Bruno! – kenn, on December 13, 2008 17:27
kenn asked a question in tarpipe on December 05, 2008 19:12:
Secondary password for RejawThanks for supporting Rejaw, but could you suggest "Secondary password" instead of "Password", linking to http://rejaw.com/account/credentials? It's like Remote key in FriendFeed.-
kenn started following the idea "rejaw support" in Seesmic.
-
kenn started following the problem "Your Rejaw integration shouldn't require email address" in Ping.fm.
| next » « previous |
Loading Profile...





