Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!81.171.88.16.MISMATCH!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tcl/tk': 0.09; 'subject:question': 0.10; 'python': 0.11; 'jan': 0.12; 'wrote': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:unicode': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'char': 0.24; 'copied': 0.24; 'issue,': 0.24; 'question': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; 'am,': 0.29; 'asked': 0.31; 'prints': 0.31; 'but': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'staff': 0.61; 'first': 0.61; 'complete': 0.62; 'more': 0.64; 'partially': 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 Subject: Re: unicode question Date: Wed, 28 Jan 2015 02:21:39 -0500 References: 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:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422429712 news.xs4all.nl 2914 [2001:888:2000:d::a6]:36660 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 2861363156 X-Received-Bytes: 3576 Xref: csiph.com comp.lang.python:84724 On 1/27/2015 12:17 AM, Rehab Habeeb wrote: > Hi there python staff > does python support arabic language for texts ? and what to do if it > support it? > i wrote hello in Arabic using codeskulptor and the powershell just for > testing and the same error appeared( a sytanx error in unicode)!! I do not know how complete the support is, but this is copied from=20 3.4.2, which uses tcl/tk 8.6. >>> t =3D "=D8=A7=D9=84=D8=AD=D8=B1=D9=83=D8=A7=D8=AA" >>> for c in t: print(c) # Prints rightmost char above first =D8=A7 =D9=84 =D8=AD =D8=B1 =D9=83 =D8=A7 =D8=AA The following StackOverflow question and response indicate that there=20 may b more issue, but it was asked before tcl/tk 8.6 was available, so=20 the answer may be partially obsolete. --=20 Terry Jan Reedy