sixhobbits 0 Newbie Poster

Hi,

I recently upgraded from python 2.6 to python 3.1 as I am writing some simple code which makes use of German special characters (äÄöÖüÜß).

The special characters are in a dictionary. They are printed, but also input by the user.

The program works fine now when run in Python (As far as I can work out, 3.1 uses utf-8 by default, while 2.6 used latin). My problem is that when I freeze the script to an executable using cx_freeze (Yes, I have the 3.1 version), the special characters are not displayed properly again. (the 'ü' comes out as '?' -- others are represented in other ways.)

I ran cx_freeze using the inbuilt cx_freeze scripts. Does anyone know if there is a way to specify encoding in these scripts? Or another way to solve the problem?

Any help would be greatly appreciated!

Six :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.