index = text.find(search) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
new_string = re.sub("[^a-zA-Z]"," ", test)
index = text.find(search)
Im stuck. Is the sapce a unicode char?




Posted 30 June 2011 - 11:52 AM
index = text.find(search) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
new_string = re.sub("[^a-zA-Z]"," ", test)
index = text.find(search)
Posted 30 June 2011 - 11:58 AM
>>> x = "KLSDN)(JU$R-0si-jsldkfnmlkj" >>> y = "" >>> for letter in x: if letter.isalpha(): y += letter else: y+= " " >>> y 'KLSDN JU R si jsldkfnmlkj'
Posted 30 June 2011 - 12:04 PM
sepp2k, on 30 June 2011 - 01:03 PM, said:
This post has been edited by tootypegs: 30 June 2011 - 12:05 PM
Posted 30 June 2011 - 08:08 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
