3 ms·
I'm still trying to find one valid use for length of string in unicode characters. What one usually needs to know is length of string as it's rendered by some o
by dfox 17y ago
I'm still trying to find one valid use for length of string in unicode characters. What one usually needs to know is length of string as it's rendered by some output device, which is not related to count of unicode characters in any useful way. Even for fixed point fonts you can have glyphs that are composed from multiple unicode characters or characters whose glyphs occupy two consecutive positions.
- anamax 17y agoTwitter has a limit of 140 "codepoints". Not bytes. Not glyphs.
- prodigal_erik 17y agoThat's weird, I thought its limit was deliberately low enough to fit into an SMS message, which has a limit of 140 octets (160 characters in some 7-bit encoding GSM uses). Do they actually allow, say, 140 kanji?
- anamax 17y agohttp://groups.google.com/group/twitter-development-talk/browse_thread/thread/9a106a68b3227af2# http://groups.google.com/group/twitter-development-talk/brow...
- ricree 17y agoThat post basically just says go look at this wiki page: https://twitterapi.pbworks.com/Counting-Characters https://twitterapi.pbworks.com/Counting-Characters Why not link to that in the first place?