Re: Encodign issue in Python 3.3.1 (once again)

2013-06-12 Thread Daniel Gagliardi Ramos
don't ya have something intelligent to say motherfucker? 2013/5/28 rusi > On May 28, 10:55 am, Νίκος Γκρ33κ wrote: > > Ôç Ôñßôç, 28 ÌáÀïõ 2013 1:18:06 ð.ì. UTC+3, ï ÷ñÞóôçò Chris Angelico > Ýãñáøå: > > > > > You're effectively asking people to put in a few minutes' work, > > > sometimes quite

RE: Encodign issue in Python 3.3.1 (once again)

2013-06-12 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 08:18:06 +1000 > Subject: Re: Encodign issue in Python 3.3.1 (once again) > From: ros...@gmail.com > To: python-list@python.org [...] > > This is something that's utterly trivial, yet a window to your mind.

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-31 Thread Νικόλαος Κούρας
Τη Πέμπτη, 30 Μαΐου 2013 8:28:56 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > Wonder how much less exciting this mailing list would be if he > switched to decaf... decaf is like tasting coffee without coffee! Caffeine gives the coffee a nice taste and make me sweaty and panik too if when i str

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Chris Angelico
On Fri, May 31, 2013 at 3:01 AM, Michael Torrie wrote: > On 05/30/2013 08:40 AM, Chris Angelico wrote: >> but if he's actively using the module, he probably knows where to >> find its docs. > > One would hope, but alas one probably hopes in vain. I'm not sure he > wants to spend the time to read

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Michael Torrie
On 05/30/2013 08:40 AM, Chris Angelico wrote: > but if he's actively using the module, he probably knows where to > find its docs. One would hope, but alas one probably hopes in vain. I'm not sure he wants to spend the time to read the code he's using and understand. He's in too much of a hurry t

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Chris Angelico
On Fri, May 31, 2013 at 12:35 AM, Michael Torrie wrote: > On 05/30/2013 05:47 AM, Νίκος Γκρ33κ wrote: >> The moen i switched "charset = 'utf-8'" => "charset = 'utf8'" all >> started to work properly! > > Glad you have it working. > > Perhaps this should be a lesson to you, Nick. Chris was able to

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Michael Torrie
On 05/30/2013 05:47 AM, Νίκος Γκρ33κ wrote: > The moen i switched "charset = 'utf-8'" => "charset = 'utf8'" all > started to work properly! Glad you have it working. Perhaps this should be a lesson to you, Nick. Chris was able to spot your problem by READING THE DOCUMENTATION, which he probably

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 30 Μαΐου 2013 2:33:56 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, May 30, 2013 at 8:53 PM, wrote: > > > Good morning Michael, > > > > > > I'am afraid as much as you dont want to admin it that the moment i append > > the charset directive into the connections tring i rece

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Chris Angelico
On Thu, May 30, 2013 at 8:53 PM, wrote: > Good morning Michael, > > I'am afraid as much as you dont want to admin it that the moment i append the > charset directive into the connections tring i receive a huge error which it > can be displayed in: > > http://superhost.gr/cgi-bin/pelatologio.py

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Τη Πέμπτη, 30 Μαΐου 2013 1:53:33 μ.μ. UTC+3, ο χρήστης nagia@gmail.com έγραψε: > Τη Πέμπτη, 30 Μαΐου 2013 12:29:56 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > > > On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote: > > > > > > > What makes us o sure it is a pymysql issue and not pyth

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Τη Πέμπτη, 30 Μαΐου 2013 12:29:56 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote: > > > What makes us o sure it is a pymysql issue and not python's encoding > > > issue? > > > > The original traceback, which showed that the encoding error w

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread Michael Torrie
On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote: > What makes us o sure it is a pymysql issue and not python's encoding > issue? The original traceback, which showed that the encoding error was happening in "/opt/python3/lib/python3.3/site-packages/pymysql/cursors.py", line 108. As was said

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Can ypou tell me how to install MySQLdb in python 3 using pip? pip install MySQLdb doesnt find the module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-29 Thread nagia . retsina
What makes us o sure it is a pymysql issue and not python's encoding issue? -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
But i think iam gonna fight it some more because mysqldb in python 3 has issues too :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
Τη Τρίτη, 28 Μαΐου 2013 9:19:21 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 05/28/2013 12:08 PM, nagia.rets...@gmail.com wrote: > > > Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie > > > έγραψε: > > > > > >> Basically you want pelatologio.py to run and then you proc

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Michael Torrie
On 05/28/2013 12:08 PM, nagia.rets...@gmail.com wrote: > Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie > έγραψε: > >> Basically you want pelatologio.py to run and then you process the >> output through a template, correct? > > That is correct. > >> Inside pelatologio.py th

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > Basically you want pelatologio.py to run and then you process the output > through a template, correct? That is correct. > Inside pelatologio.py > there is some object that you are trying to reference the "id" attribu

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Joel Goldstick
On Tue, May 28, 2013 at 2:08 PM, wrote: > Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie > έγραψε: > > > Basically you want pelatologio.py to run and then you process the output > > through a template, correct? > > That is correct. > > > Inside pelatologio.py > > there is so

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Michael Torrie
On 05/28/2013 10:45 AM, Νίκος Γκρ33κ wrote: > con = pymysql.connect( db = 'pelatologio', host = 'localhost', user = > 'blabla', passwd = 'blabla', init_command='SET NAMES UTF8', charset = 'utf-8' > ) > > produces this "God knows what" error traceback Hey at least your database code is now w

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Νίκος Γκρ33κ
con = pymysql.connect( db = 'pelatologio', host = 'localhost', user = 'blabla', passwd = 'blabla', init_command='SET NAMES UTF8', charset = 'utf-8' ) produces this "God knows what" error traceback /home/nikos/public_html/cgi-bin/metrites.py in () 217 template = htmldata

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Michael Torrie
On 05/28/2013 10:00 AM, Νίκος Γκρ33κ wrote: > I do not know here to find connections.py Michael. It's part of the pymysql package that you installed. Look in there (the traceback even shows you where the file is). But you actually don't even need to look at it on your server. You can see the so

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread MRAB
On 28/05/2013 17:00, Νίκος Γκρ33κ wrote: I do not know here to find connections.py Michael. But i do not understand since iam suing the following 2 statements, why a unicode error remains. #needed line, script does *not* work without it sys.stdout = os.fdopen(1, 'w', encoding='utf-8') # conne

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Νίκος Γκρ33κ
I do not know here to find connections.py Michael. But i do not understand since iam suing the following 2 statements, why a unicode error remains. #needed line, script does *not* work without it sys.stdout = os.fdopen(1, 'w', encoding='utf-8') # connect to database con = pymysql.connect( db =

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread Michael Torrie
On 05/27/2013 02:17 PM, Νίκος Γκρ33κ wrote: > I have checked the database through phpMyAdmin and it is indeed UTF-8. > > I have no idea why python 3.3.1 chooses to work with latin-iso only It's not python that is doing this here... If you look at the source code to pymysql, I'm sure you will

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread rusi
On May 28, 10:55 am, Νίκος Γκρ33κ wrote: > Ôç Ôñßôç, 28 ÌáÀïõ 2013 1:18:06 ð.ì. UTC+3, ï ÷ñÞóôçò Chris Angelico Ýãñáøå: > > > You're effectively asking people to put in a few minutes' work, > > sometimes quite a few minutes, to help you. Is it too much to hope > > that you'll spend one more minute

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Νίκος Γκρ33κ
Τη Τρίτη, 28 Μαΐου 2013 1:18:06 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > You're effectively asking people to put in a few minutes' work, > sometimes quite a few minutes, to help you. Is it too much to hope > that you'll spend one more minute on your posts? No it is not, you are right, i sh

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Chris Angelico
On Tue, May 28, 2013 at 2:56 AM, Νίκος Γκρ33κ wrote: > Τη Δευτέρα, 27 Μαΐου 2013 6:52:32 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > >> Oh, and you may want to hire a typist, too. At the moment, your posts >> make you appear not to care about the job. > > I always make typos when iam typing fas

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Νίκος Γκρ33κ
I have checked the database through phpMyAdmin and it is indeed UTF-8. I have no idea why python 3.3.1 chooses to work with latin-iso only -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Νίκος Γκρ33κ
Τη Δευτέρα, 27 Μαΐου 2013 6:52:32 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > So you want to pay someone who won't ask for money? > It may be sordid, but you're going to have to discuss money at some > point if you're serious about paying someone. > Oh, and you may want to hire a typist, too. A

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Chris Angelico
On Tue, May 28, 2013 at 1:37 AM, Νίκος Γκρ33κ wrote: > Τη Δευτέρα, 27 Μαΐου 2013 5:45:25 μ.μ. UTC+3, ο χρήστης Mark Lawrence έγραψε: > >> Sure, all you need do is get your cheque book out. Also have you ever >> heard the expression "patience is a virtue"? > > Well, if i'am gonna pay someone and i

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Νίκος Γκρ33κ
Τη Δευτέρα, 27 Μαΐου 2013 5:45:25 μ.μ. UTC+3, ο χρήστης Mark Lawrence έγραψε: > Sure, all you need do is get your cheque book out. Also have you ever > heard the expression "patience is a virtue"? Well, if i'am gonna pay someone and i will at some point because i want my script to be also re-w

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Mark Lawrence
On 27/05/2013 15:16, Νίκος Γκρ33κ wrote: I cant solve this plz help! Sure, all you need do is get your cheque book out. Also have you ever heard the expression "patience is a virtue"? -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark La

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Michael Torrie
On 05/26/2013 11:06 PM, Νίκος Γκρ33κ wrote: > But iu have it set up for 'utf-8' as seen in this statement. > > con = pymysql.connect( db = 'metrites', host = 'localhost', user = > 'me', passwd = 'somepass', charset='utf-8', init_command='SET NAMES UTF8' ) That might not help... see below. > >

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-27 Thread Νίκος Γκρ33κ
I cant solve this plz help! -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Νίκος Γκρ33κ
But iu have it set up for 'utf-8' as seen in this statement. con = pymysql.connect( db = 'metrites', host = 'localhost', user = 'me', passwd = 'somepass', charset='utf-8', init_command='SET NAMES UTF8' ) Yoiu mean i shoudl chnag eit to greek isoo= (iso-8859-7) but then i store english names an

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Tim Roberts
? ???33? wrote: > >This is the code that although correct becaus it works with englisg(standARD >ASCII letters) it wont with Greek: >... >if( log ): > name = log > # print specific client header info > cur.execute('''SELECT hits, money FROM clients WHERE name = %s''', > (na

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Mark Lawrence
On 26/05/2013 23:32, Chris Angelico wrote: On Mon, May 27, 2013 at 8:21 AM, Mark Lawrence wrote: On 26/05/2013 22:26, Νίκος Γκρ33κ wrote: No thi is not a mysql issue becaus ei have this line above for storing and retrieval form database. con = pymysql.connect( db = 'metrites', host = 'localh

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Chris Angelico
On Mon, May 27, 2013 at 8:21 AM, Mark Lawrence wrote: > On 26/05/2013 22:26, Νίκος Γκρ33κ wrote: >> >> No thi is not a mysql issue becaus ei have this line above for storing and >> retrieval form database. >> >> con = pymysql.connect( db = 'metrites', host = 'localhost', user = 'me', >> passwd = '

RE: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk [...] > No wonder the Greek economy is so screwed up. > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPython. > > Mark Lawrence LOL LOL LOL LOL LOL

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Mark Lawrence
On 26/05/2013 22:26, Νίκος Γκρ33κ wrote: No thi is not a mysql issue becaus ei have this line above for storing and retrieval form database. con = pymysql.connect( db = 'metrites', host = 'localhost', user = 'me', passwd = 'somepass', init_command='SET NAMES UTF8' ) No wonder the Greek econ

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Chris Angelico
On Mon, May 27, 2013 at 7:26 AM, Νίκος Γκρ33κ wrote: > No thi is not a mysql issue becaus ei have this line above for storing and > retrieval form database. > > con = pymysql.connect( db = 'metrites', host = 'localhost', user = 'me', > passwd = 'somepass', init_command='SET NAMES UTF8' ) Resear

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Νίκος Γκρ33κ
No thi is not a mysql issue becaus ei have this line above for storing and retrieval form database. con = pymysql.connect( db = 'metrites', host = 'localhost', user = 'me', passwd = 'somepass', init_command='SET NAMES UTF8' ) -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Terry Jan Reedy
On 5/26/2013 12:36 PM, Νίκος Γκρ33κ wrote: This is the code that although correct becaus it works with englisg(standARD ASCII letters) it wont with Greek: if( log ): name = log # print specific client header info cur.execute('''SELECT hits, money FROM clients WHERE name

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Νίκος Γκρ33κ
Any idea how to correct this encoding issue? -- http://mail.python.org/mailman/listinfo/python-list