OEM character set issue

  • Thread starter Ladvánszky Károly
  • Start date
L

Ladvánszky Károly

On my hungarian Win2k, some of the accented characters of the file names
appear incorrectly when Python is driven from the command line. However,
they
appear okay when the same script is running within an IDE. The same problem
holds in the case of text files edited by GUI editors. Is there any solution
in the Python arsenal?

Thanks for any help,

Károly
 
D

Dennis Lee Bieber

On my hungarian Win2k, some of the accented characters of the file names
appear incorrectly when Python is driven from the command line. However,
they

The "MS-DOS" command window tends to use a different character
encoding than full "Windows" widgets.

Makes this a M$ problem, not Python...
--
 
K

Kent Johnson

Dennis said:
The "MS-DOS" command window tends to use a different character
encoding than full "Windows" widgets.

You can chaneg the encoding used by the command window with the chcp command.

Kent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top