Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'dev': 0.07; 'odd': 0.07; 'blue': 0.09; 'api': 0.11; 'cc:addr :python-list': 0.11; 'buffer,': 0.16; 'buggy': 0.16; 'subject:Could': 0.16; 'subject:Unicode': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'twitter.': 0.16; 'way;': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'seems': 0.21; '>>>': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'text,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; "doesn't": 0.30; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'posting': 0.31; '+0100,': 0.31; '>>>>': 0.31; 'asks': 0.31; "d'aprano": 0.31; 'piece': 0.31; 'post.': 0.31; 'steven': 0.31; 'text': 0.33; 'says': 0.33; 'running': 0.33; 'guess': 0.33; 'not.': 0.33; 'subject:the': 0.34; "i'd": 0.34; "can't": 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:List': 0.36; 'done': 0.36; 'subject:?': 0.36; 'reports': 0.37; 'so,': 0.37; 'button': 0.38; 'expect': 0.39; 'sure': 0.39; 'how': 0.40; 'company': 0.60; 'august': 0.61; 'browser': 0.61; 'course': 0.61; "you're": 0.61; 'further': 0.61; 'provide': 0.64; 'bothered': 0.68; 'press': 0.70; 'subject:this': 0.83; 'compose': 0.84; 'copy-paste': 0.84; 'lying': 0.84; 'pasting': 0.84; 'subject:you': 0.87; 'either:': 0.91; 'ultimate': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=O6qbXM488lbZuyngvNSsQ3OVp75J7Q3pwRxO4s/A/iw=; b=j5IDWSD3jyPKrSR+SEOK1FBJbUpAsku29cc/F2utouLc10ZgoWlX+piKfqK0xbguci QrZnEubPvABKUhE0zze5ouxFS/vtDYHXnoZcyecKh0uwlr1E7gEwMah9bNf3zumqGVAl 1jjs83LMjPY6qRyDQHn83TqQOJglLd7DEK8LIpiNUYWsYEzxMp0UuwnPFGS5gYyvtdhQ vV1S95ibuqPtEXNi6z88TM7ikep5L9BHILtqbvjR+U50jpJREfNB+PwhzLNsJFttwWxI b2OUiia3GHNsxGsM7xvmgOrud5/6EWnST0ekfFIMv650pvfbG9a8OY0CKCVHRfn1Ucpb 1Ncw== X-Received: by 10.112.35.225 with SMTP id l1mr718651lbj.37.1376383251306; Tue, 13 Aug 2013 01:40:51 -0700 (PDT) MIME-Version: 1.0 Sender: joshua.landau.ws@gmail.com In-Reply-To: <5207722c$0$30000$c3e8da3$5496439d@news.astraweb.com> References: <520754d7$0$30000$c3e8da3$5496439d@news.astraweb.com> <5207722c$0$30000$c3e8da3$5496439d@news.astraweb.com> From: Joshua Landau Date: Tue, 13 Aug 2013 09:40:11 +0100 X-Google-Sender-Auth: HxCk68MADLW2li0ng4m-fQs-dxE Subject: Re: Could you verify this, Oh Great Unicode Experts of the Python-List? To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376383259 news.xs4all.nl 15884 [2001:888:2000:d::a6]:56404 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52447 On 11 August 2013 12:14, Steven D'Aprano wrote: > On Sun, 11 Aug 2013 10:44:40 +0100, Joshua Landau wrote: >>>> "cafe=CC=81" will be in your Copy-Paste buffer, and you can paste it i= n 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.