Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; 'template': 0.14; "'''": 0.16; 'subject:Unicode': 0.16; 'subject:issue': 0.16; 'url:%s': 0.16; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'header :In-Reply-To:1': 0.27; 'cc:2**2': 0.30; 'cc:no real name:2**1': 0.33; 'subject:with': 0.35; 'received:google.com': 0.35; 'skip:p 20': 0.39; 'how': 0.40; 'from:no real name:2**0': 0.61; 'course': 0.61; 'here': 0.66; '8bit%:100': 0.72; 'url:page': 0.74; 'url:log': 0.84 X-Received: by 10.49.16.199 with SMTP id i7mr55883qed.0.1365677647037; Thu, 11 Apr 2013 03:54:07 -0700 (PDT) Newsgroups: comp.lang.python Date: Thu, 11 Apr 2013 03:54:06 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.69.168; posting-account=hGu1uQoAAACZy7LiR653nG0NwqDrTyoS References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.69.168 MIME-Version: 1.0 Subject: Re: Unicode issue with Python v3.3 From: nagia.retsina@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: nagia.retsina@gmail.com, =?UTF-8?B?zp3Or866zr/PgiDOk866z4EzM866?= , python-list@python.org 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: , Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365677655 news.xs4all.nl 2670 [2001:888:2000:d::a6]:56222 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43351 Of course here is how it look like: if page.endswith('.html'): f =3D open( "/home/nikos/www/" + page, encoding=3D"utf-8" ) htmldata =3D f.read() htmldata =3D htmldata % (quote, music) =09 counter =3D '''
=CE=91=CF=81=CE=B9=CE=B8=CE=BC=CF=8C=CF=82 = =CE=95=CF=80=CE=B9=CF=83=CE=BA=CE=B5=CF=80=CF=84=CF=8E=CE=BD %d

''' % (page, data[0]) =20 template =3D htmldata + counter print( template )