Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'encoded': 0.05; 'skip:" 60': 0.05; 'skip:\\ 20': 0.05; ':-(': 0.07; 'utf-8': 0.07; 'cc:addr:python-list': 0.09; 'mentions': 0.09; 'subject:not': 0.11; 'wed,': 0.15; "skip:' 30": 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'weird.': 0.16; 'wrote:': 0.16; '>>>': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'skip:" 40': 0.20; 'sep': 0.22; 'seems': 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.24; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'correct': 0.28; "skip:' 20": 0.34; 'received:google.com': 0.35; 'path': 0.35; 'skip:" 50': 0.35; 'but': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'wrong': 0.38; 'why': 0.39; 'unable': 0.39; 'where': 0.40; 'different': 0.63; 'python-list': 0.66; 'funny': 0.83; 'chrisa': 0.84; 'subject:handle': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=gN7TjTa6+WEchGjVO60Wz6ilQTsdLqvDvHBQJwGJMqM=; b=JEmcSJsocQSyQB89VLIMuGb9hjuhK45Kh5Pqy68u3k60lKB2y+gNyAsar3BKZhiK7q r8A31ZtF1MhVmx2doWXE4tzUz8jScxLRwR7ujimP1pQjif+hH0pK01TOujgE4JjvK2KD 4NShTrOD90DJcp7ZTtnuFmytXLXA7mNkKb9LHlhZ9fbcMy9t6xxnTTppSEusjBu7Xaxe VMMtHqdkID0p2kSM0/rh6Mjv21LGhaeXQs/oy0CUEs7MP0zRQ28JDgt35Ot2lNvvvlqh 24qZTa1zHhIgCO59vZzIqv39g4yGnFdhr6YXAH+eHXUUTSf+8hsA+e4IDAEib9rUR2JI cqyg== MIME-Version: 1.0 X-Received: by 10.50.50.198 with SMTP id e6mr48871823igo.13.1441787025439; Wed, 09 Sep 2015 01:23:45 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Sep 2015 18:23:45 +1000 Subject: Re: PIP does not appear to handle diacritics correctly. From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441787028 news.xs4all.nl 23800 [2001:888:2000:d::a6]:34683 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96172 On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list wrote: > Whenever I start PIP, I get: > "Fatal error in launcher: Unable to create process using '"C:\Users > \B=E2=94=9C=E2=95=9DrgerGegenFlugl=E2=94=9C=C3=B1rm\AppData\Local\Program= s\Python\Python35-32 > \python.exe" "C:\Users\B=C2=B3rgerGegenFlugl=C3=B5rm\AppData\Local\Progr= ams\Python > \Python35-32\Scripts\pip.exe" '" > > Where the correct path is "C:\Users\B=C3=BCrgerGegenFlugl=C3=A4rm\AppData= ..." > > The funny thing is that the message mentions the path twice, with > different wrong codings. > :-( Peculiar. I don't know if it helps, but the first one seems to have been encoded UTF-8 and then decoded CP437; and the second has been encoded Latin-1 and decoded CP850. >>> "B=C3=BCrgerGegenFlugl=C3=A4rm".encode("utf-8").decode("437") 'B=E2=94=9C=E2=95=9DrgerGegenFlugl=E2=94=9C=C3=B1rm' >>> "B=C3=BCrgerGegenFlugl=C3=A4rm".encode("iso-8859-1").decode("850") 'B=C2=B3rgerGegenFlugl=C3=B5rm' But why those particular encodings... weird. ChrisA