Source Encoding GBK/GB2312

steven at lczmsoft.com steven at lczmsoft.com
Wed Feb 23 23:02:16 EST 2005


When I specify an source encoding such as:

# -*- coding: GBK -*-
or
# -*- coding: GB2312 -*-

as the first line of source, I got the following error:

SyntaxError: 'unknown encoding: GBK'


Does this mean Python does not support GBK/GB2312?  What do I do?

-
narke




More information about the Python-list mailing list