Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-18 Thread akhil1988
for 2 days. If you think I am wrong in my approach to getting problems solved, please let me know. Your advise would be helpful in future for me. --Thanks Again, Akhil Scott David Daniels wrote: > > akhil1988 wrote: > > >> Nobody-38 wrote: >>> On Thu, 16 Jul 2009 15:4

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-18 Thread akhil1988
Thanks Nobody-38, it solved my problem immediately. --Thanks Again, Akhil Nobody-38 wrote: > > On Thu, 16 Jul 2009 20:26:39 -0700, akhil1988 wrote: > >> Well, you were write: unintentionally I removed strip(). But the problem >> does >> not ends here: >> >

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
.py", line 300, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-2: invalid data for this line: â --Akhil Nobody-38 wrote: > > On Thu, 16 Jul 2009 15:43:37 -0700, akhil1988

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
if line == '': #do something here elsif #do something here If I remove the decode statement, line == '' never gets true. --Akhil Piet van Oostrum wrote: > >>>>>> akhil1988 (a) wrote: > >>a> ok! >>a> I got the indentation e

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
attribute 'decode' I am using Python3.1 Thanks Akhil akhil1988 wrote: > > Hi, > > Thanks all for the replies. > > I am working on a cluster of 15 nodes and I have now installed python 3.1 > on all of them. I tried installing python2.6 but there was some make >

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
, Akhil http://www.nabble.com/file/p24522412/temp.py temp.py alex23 wrote: > > On Jul 16, 9:00 pm, akhil1988 wrote: >> I have switched to python 3.1 , but now I am getting some syntax errors >> in >> the code: > > Python 3.x was a major release that endeavoured to cl

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
Please click reply on the post and then read this reply in the editor. Actually, some sequences have been replaced to their graphical form when this post is published. So the python code is being displayed, what actually it is not. --Akhil akhil1988 wrote: > > I have switched to pyth

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread akhil1988
AB', '¬':u'\u00AC', '­' :u'\u00AD', '®' :u'\u00AE', '¯' :u'\u00AF', '°' :u'\u00B0', '±' :u'\u00B1',

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-15 Thread akhil1988
eplace('>>', u'»') --Akhil Chris Rebert-6 wrote: > >> Chris Rebert-6 wrote: >>> >>> On Wed, Jul 15, 2009 at 9:34 PM, akhil1988 wrote: >>>> >>>> Hi! >>>> >>>> Can anyone please help me getting

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-15 Thread akhil1988
Sorry, it is sgmllib.py and not sgmmlib.py -- Akhil akhil1988 wrote: > > Well, > All I get is this traceback: > > File "./customWikiExtractor.py", line 492, in ? > main() > File "./customWikiExtractor.py", line 480, in main >

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-15 Thread akhil1988
I tried a few repairs, but they did not work like changing: in sgmmlib.py (/usr/lib64/python2.4/sgmmlib.py) if not 0 < n <= 255 to if not 0 < n <= 127 But since this did not work, I have changed it back to it's original form. --Thanks, Akhil Chris Rebert-6 wrote: > &

UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-15 Thread akhil1988
Hi! Can anyone please help me getting rid of this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128) I am not a python programmer (though intend to start learning this wonderful language), I am just using a python script. After doin