View Single Post
  #3  
Old 11-18-2007, 03:38 PM
notreallymyname notreallymyname is offline
Senior Member
 
Join Date: Dec 2006
Location: NL100
Posts: 123
Default Re: Python help needed! Stars screwed me..

Use codecs.open (import codecs) - codecs.open('Notes.txt', 'r', 'utf_16'). You'll have to change some of your code to use unicode where it currently doesn't though (e.g. that split, although list(inp) would work fine there)
Reply With Quote