Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52447
| References | <mailman.468.1376201912.1251.python-list@python.org> <520754d7$0$30000$c3e8da3$5496439d@news.astraweb.com> <mailman.474.1376214330.1251.python-list@python.org> <5207722c$0$30000$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| From | Joshua Landau <joshua@landau.ws> |
| Date | 2013-08-13 09:40 +0100 |
| Subject | Re: Could you verify this, Oh Great Unicode Experts of the Python-List? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.524.1376383259.1251.python-list@python.org> (permalink) |
On 11 August 2013 12:14, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Sun, 11 Aug 2013 10:44:40 +0100, Joshua Landau wrote: >>>> "cafeĢ" will be in your Copy-Paste buffer, and you can paste it in to >>>> the tweet-box. It takes 5 characters. So much for testing ;). >>> >>> How do you know that it takes 5 characters? Is that some Javascript >>> widget? I'd blame buggy Javascript before Twitter. >> >> I go to twitter.com, log in and press that odd blue compose button in >> the top-right. After pasting at says I have 135 (down from 140) >> characters left. > > I'm pretty sure that will be a piece of Javascript running in your > browser that reports the number of characters in the text box. So, I > would expect that either: > > - Javascript doesn't provide a way to normalize text; > > - Twitter's Javascript developer(s) don't know how to normalize text, or > can't be bothered to follow company policy (shame on them); > > - the Javascript just asks the browser, and the browser doesn't know how > to count characters the Twitter way; > > etc. But of course posting to Twitter via your browser isn't the only way > to post. Twitter provide an API to twit, and *that* is the ultimate test > of whether Twitter's dev guide is lying or not. Well, I've done some further testing and it seems you're right. It's just the javascript that's wrong. I guess they did it for better load-times.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Could you verify this, Oh Great Unicode Experts of the Python-List? Joshua Landau <joshua@landau.ws> - 2013-08-11 07:17 +0100
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-11 09:09 +0000
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Joshua Landau <joshua@landau.ws> - 2013-08-11 10:44 +0100
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-11 11:14 +0000
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Chris Angelico <rosuav@gmail.com> - 2013-08-11 12:45 +0100
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Joshua Landau <joshua@landau.ws> - 2013-08-11 12:59 +0100
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Joshua Landau <joshua@landau.ws> - 2013-08-13 09:40 +0100
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? wxjmfauth@gmail.com - 2013-08-11 05:51 -0700
Re: Could you verify this, Oh Great Unicode Experts of the Python-List? Joshua Landau <joshua@landau.ws> - 2013-08-11 14:07 +0100
csiph-web