Mario-Fan
Posts: 32
Joined: Fri Dec 28, 2012 2:34 pm

Accents from files and raw_input()

Sun Mar 17, 2013 8:02 pm

So I've got a program that needs to be able to get French text from text files and raw_input(). This text includes accents. I've looked up how to do that, and my findings have only confused me even more. Can anyone explain what I can do (Python 2.7)? I want it to be compatible across as many operating systems as possible. I'm guessing it has something to do with changing the encoding in the files to UTF-8 or Unicode and getting the program to interpret it right.

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Accents from files and raw_input()

Fri Mar 22, 2013 1:24 pm

http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “Python”