To circumvent the bug cp1252

Discussion in 'Python' started by Do Re Mi chel La Si Do, May 15, 2005.

  1. 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
    Do Re Mi chel La Si Do, May 15, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mickey Segal
    Replies:
    5
    Views:
    33,542
    Mickey Segal
    Apr 20, 2005
  2. David Eppstein

    Distinguishing cp850 and cp1252?

    David Eppstein, Nov 3, 2003, in forum: Python
    Replies:
    3
    Views:
    584
    David Eppstein
    Nov 3, 2003
  3. =?iso-8859-1?B?bW9vcJk=?=

    Cp1252 problem

    =?iso-8859-1?B?bW9vcJk=?=, Sep 27, 2006, in forum: Java
    Replies:
    2
    Views:
    41,078
    Mike Schilling
    Sep 27, 2006
  4. Méta-MCI

    Bug? import cp1252

    Méta-MCI, May 12, 2007, in forum: Python
    Replies:
    2
    Views:
    481
    Méta-MCI
    May 14, 2007
  5. Victor Bazarov

    A hack to circumvent access - how bad?

    Victor Bazarov, Sep 23, 2009, in forum: C++
    Replies:
    7
    Views:
    433
    Balog Pal
    Sep 23, 2009
Loading...

Share This Page