On Fri, May 1, 2009 at 2:19 PM, Pablo P. F. de Faria <pablofa...@gmail.com> wrote: > Hi, all. I need some help. > > I'm trying to save a configuration file, using ConfigParser. The code > is the following: > > self.cfg.write(codecs.open(self.properties_file,'w','utf-8')) > > As one can see, the character encoding is explicitly UTF-8. But > ConfigParser keeps trying to save it as a 'ascii' file and gives me > error for directory-names containing >128 code characters (like "Á"). > It is just a horrible thing to me, for my app will be used mostly by > brazillians.
What is the exact error and stack trace you get? What directory name is the problem? Is it the directory where you are saving the file or a directory name that is in the configuration data? Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor