Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79964

Re: accents in windows

Path csiph.com!usenet.pasdenom.info!news.franciliens.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'python,': 0.02; 'nicely': 0.07; 'correct,': 0.09; 'exist,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'works.': 0.09; 'python': 0.11; 'gui': 0.12; 'jan': 0.12; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:windows': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'work,': 0.20; 'python?': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'certainly': 0.24; 'unicode': 0.24; 'together.': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'characters': 0.30; 'to?': 0.30; '(which': 0.31; 'code': 0.31; 'easier': 0.31; '8:30': 0.31; 'font': 0.31; 'linux.': 0.31; '-----': 0.33; 'problem': 0.35; 'problem.': 0.35; 'but': 0.35; 'version': 0.36; 'idle': 0.36; 'thanks': 0.36; 'should': 0.36; 'email addr:python.org': 0.37; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'solve': 0.60; 'name': 0.63; 're:': 0.63; 'kind': 0.63; 'real': 0.63; '30,': 0.65; 'email name:python-list': 0.65; 'dont': 0.67; '3.4': 0.84; 'received:fios.verizon.net': 0.84; 'received:108': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: accents in windows
Date Thu, 30 Oct 2014 14:04:04 -0400
References <838615157.3476350.1414627277178.JavaMail.zimbra@estudiantes.uci.cu> <1003235191.3477106.1414627437852.JavaMail.zimbra@estudiantes.uci.cu> <CAPTjJmonbmS85SUK46Z37=2BQscKws3fvGVOV2izbUsE16AL=g@mail.gmail.com> <1796463426.3602276.1414672249566.JavaMail.zimbra@estudiantes.uci.cu>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-108-16-203-145.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <1796463426.3602276.1414672249566.JavaMail.zimbra@estudiantes.uci.cu>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15330.1414692264.18130.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414692264 news.xs4all.nl 2952 [2001:888:2000:d::a6]:35985
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79964

Show key headers only | View raw


On 10/30/2014 8:30 AM, C@rlos wrote:
> thanks U, but the real problem is:
>
> i have a path C:\Users\yanet\Desktop\áaaéeeíiiióooúuuñnn
> this path is correct, áaaéeeíiiióooúuuñnn is the name of a directory
> but when i try to use os.walk() usin this path, dont work, for os this
 > path dont exist, i try every things but nothing works.
>
> some help???

Using Python 3.4 should solve this problem.


> ----- Mensaje original -----
> De: "Chris Angelico" <rosuav@gmail.com>
> CC: python-list@python.org
> Enviados: Jueves, 30 de Octubre 2014 4:42:49
> Asunto: Re: accents in windows
>
> On Thu, Oct 30, 2014 at 11:03 AM, C@rlos <cmferras@estudiantes.uci.cu> wrote:
>> i cant print any accent(á é í ó ú) or ñ in console  when i use windows OS
>> with python, the console showme an error or extrangers characters in some
>> cases, i need help

Using Idle and a font with accented chars should solve this problem.

> What version of Python? What is your code page set to?
>
> Windows and Unicode don't play very nicely together. You may find it
> better to use Idle (which has a GUI for this kind of display), and you
> will almost certainly find things easier on Linux.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: accents in windows Terry Reedy <tjreedy@udel.edu> - 2014-10-30 14:04 -0400

csiph-web