X-Received: by 10.224.59.205 with SMTP id m13mr17884711qah.7.1369759524651; Tue, 28 May 2013 09:45:24 -0700 (PDT) X-Received: by 10.49.96.8 with SMTP id do8mr2522418qeb.30.1369759524606; Tue, 28 May 2013 09:45:24 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ch1no2616965qab.0!news-out.google.com!y6ni51517qax.0!nntp.google.com!ch1no2616963qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Tue, 28 May 2013 09:45:24 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.12.46.11; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 NNTP-Posting-Host: 46.12.46.11 References: <7823093c-2c07-4fa0-ae97-960c62f8ff9d@googlegroups.com> <69f5q8hkra42rvpfmbng4f0airgikqf5js@4ax.com> <9560d43f-8100-4914-9a71-c30ab479ec35@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Encodign issue in Python 3.3.1 (once again) From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= Injection-Date: Tue, 28 May 2013 16:45:24 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:46310 con =3D pymysql.connect( db =3D 'pelatologio', host =3D 'localhost', user = =3D 'blabla', passwd =3D 'blabla', init_command=3D'SET NAMES UTF8', charset= =3D 'utf-8' ) produces this "God knows what" error traceback.... /home/nikos/public_html/cgi-bin/metrites.py in () 217 template =3D htmldata + counter 218 elif page.endswith('.py'): =3D> 219 htmldata =3D subprocess.check_output( '/home/niko= s/public_html/cgi-bin/' + page ) 220 template =3D htmldata.decode('utf-8').replace( 'Con= tent-type: text/html; charset=3Dutf-8', '' ) + counter 221 =20 htmldata undefined, subprocess =3D , subprocess.check_output =3D , page =3D 'pelatologio.py' /opt/python3/lib/python3.3/subprocess.py in check_output(timeout=3DNone, *= popenargs=3D('/home/nikos/public_html/cgi-bin/pelatologio.py',), **kwargs= =3D{}) 584 retcode =3D process.poll() 585 if retcode: =3D> 586 raise CalledProcessError(retcode, process.args, outpu= t=3Doutput) 587 return output 588=20 global CalledProcessError =3D , retc= ode =3D 1, process =3D , process.args =3D '/home/n= ikos/public_html/cgi-bin/pelatologio.py', output =3D b'\n= \n' CalledProcessError: Command '/home/nikos/public_html/cgi-bin/pelatologio.py= ' returned non-zero exit status 1=20 args =3D (1, '/home/nikos/public_html/cgi-bin/pelatologio.py')=20 cmd =3D '/home/nikos/public_html/cgi-bin/pelatologio.py'=20 output =3D b'\n\n'=20 returncode =3D 1=20 with_traceback =3D