Re: newbie - HTML character codes

2006-12-13 Thread ardief
thank you both - in the end I used recode, which I wasn't aware of. Fredrik, I had come across your script while googling for solutions, but failed to make it work On Dec 13, 2:21 pm, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > "ardief" wrote: > > sorry if I'm asking something very obvious bu

Re: newbie - HTML character codes

2006-12-13 Thread Fredrik Lundh
"ardief" wrote: > sorry if I'm asking something very obvious but I'm stumped. I have a > text that looks like this: > > Sentence 401 > 4.00pm — We set off again; this time via Tony's home to collect > a variety of possessions, finally arriving at hospital no.3. > Sentence 402 > 4.55pm — Tony is

Re: newbie - HTML character codes

2006-12-13 Thread Roberto Bonvallet
ardief wrote: [...] > And I want the HTML char codes to turn into their equivalent plain > text. I've looked at the newsgroup archives, the cookbook, the web in > general and can't manage to sort it out. I thought doing something like > this - > > file = open('filename', 'r') It's not a good idea