To circumvent the bug cp1252

  • Thread starter Do Re Mi chel La Si Do
  • Start date
D

Do Re Mi chel La Si Do

Hi !


*** for information ***


There is a bug in Python 2.4, worsened with the 2.4.1, for scripts, if they
are:
- large
- with larges lines
- prefixed (coded) with # -*- coding: cp1252 -*-
- on windows (XP & S2003)
- perhaps, also, other conditions...

This bug announces, wrongly, of the non-existent errors of syntax, blocks
the generation of the programmable interface of the servers-COM, with Pywin,
etc.

But I found a means of circumventing the problem: it is enough to encoder
scripts in utf-8, and to prefix them with # -*- coding: utf-8 -*-
(with that, all the problems disappear)

And, I can, finally, use version 2.4.1 - Yeah !



@-salutations

Michel Claveau
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top