Re: HELP with unicode!!!!!

2012-05-01 Thread Kejun He
Hi, it may because of the csv file sometimes, try to save the file as utf-8 or utf-8 no-bom. On Tue, May 1, 2012 at 7:08 PM, dizzydoc wrote: > Hi , > > i have lost a lot of time looking for a solution. > > My problem is, while i a reading csv in python using > > csv_file = open(path_file, "

Re: HELP with unicode!!!!!

2012-05-01 Thread JHeasly
Also, have a look at this slidedeck: http://farmdev.com/talks/unicode/ It's from a PyCon 2008 talk, "Unicode In Python, Completely Demystified" A video of the talk is at http://www.youtube.com/watch?v=cecJ9o5GGmw, but the audio's miserable, and the slides are pretty good, so it may be all you n

Re: HELP with unicode!!!!!

2012-05-01 Thread Ian Clelland
On Tuesday, May 1, 2012, dizzydoc wrote: > Hi , > > i have lost a lot of time looking for a solution. > > My problem is, while i a reading csv in python using > > csv_file = open(path_file, "rb") > reader = csv.reader(csv_file) > > whenever i perform any operation on the string returned in each c

Re: HELP with unicode!!!!!

2012-05-01 Thread Alexandr Aibulatov
Write at first line on your py file: # -*- coding: utf-8 -*- 2012/5/1 dizzydoc : > Hi , > > i have lost a lot of time looking for a solution. > > My problem is, while i a reading csv in python using > > csv_file  = open(path_file, "rb") > reader = csv.reader(csv_file) > > whenever i perform any op