Re: [Tutor] characters in python

2006-10-18 Thread Gigs_
Hugo Gonzalez M wrote: > >> I tried with unicode strings, but nothing. It says : unsoported > characters > >> > > They are supported. Are you using them literally in your code? Anything > other than ASCII or Latin-1 needs to be declared explicitly at the start > of the source code file. > > Ma

Re: [Tutor] characters in python

2006-10-18 Thread Gigs_
here is the code: def changer(): """Changer from Serbian to Croatian for this letters: æ, è, ð in ć, č, đ """ whatfile = raw_input('Enter location of your file: ') # open and read file ofile = open(whatfile, 'r') S = ofile.read() ofile.close() # search file and replace æ, è in ć, č for i in S: S