Guessing _charset for MIMEText ?

Discussion in 'Python' started by Robert, Jan 18, 2006.

  1. Robert

    Robert Guest

    How do I best guess the right (non-UTF, 8bit) default _charset for
    MIMEText on an arbitrary computer?

    Windows default encoding is quasi : 'mbcs' . No information

    >>> locale.getdefaultlocale()[1] #delivers for example:

    'cp1252'

    but I guess 'cp1252' is not recognized commonly by email-readers, but
    'ISO-8859-1' or 'Windows-1252' are usually used for that area.

    Robert

    PS: side-question: why is there a latin_1.py and a iso8859_1.py in
    lib/encodings ? Shouldn't they be the same?
     
    Robert, Jan 18, 2006
    #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. Irmen de Jong
    Replies:
    1
    Views:
    679
    Irmen de Jong
    Jan 18, 2004
  2. Damjan

    Unicode in MIMEText

    Damjan, Nov 24, 2005, in forum: Python
    Replies:
    5
    Views:
    545
    Damjan
    Nov 28, 2005
  3. Dale Strickland-Clark

    MIMEText breaking the rules?

    Dale Strickland-Clark, Aug 1, 2007, in forum: Python
    Replies:
    2
    Views:
    341
    Dale Strickland-Clark
    Aug 6, 2007
  4. Marcus.CM

    py2exe bug with email.MIMEText

    Marcus.CM, Aug 1, 2008, in forum: Python
    Replies:
    0
    Views:
    260
    Marcus.CM
    Aug 1, 2008
  5. neubyr
    Replies:
    0
    Views:
    246
    neubyr
    Sep 6, 2011
Loading...

Share This Page