[IronPython] Using iso-latin-1 character set

Sanghyeon Seo sanxiyn at gmail.com
Mon Jun 25 05:59:31 PDT 2007

2007/6/25, Sanghyeon Seo <sanxiyn at gmail.com>:
> 2007/6/25, Anders M. Mikkelsen <amm at selektro.dk>:
> > I'm using IronPython in an environment where I have to use
> > characters from the iso-latin-1 character set (æøå and ÆØÅ).
> > The problem is that IronPython seems to be replacing my
> > iso-latin-1 characters with ?-marks.
> >
> > Any ideas?
> Did you declare source code encoding?
> http://www.python.org/dev/peps/pep-0263/
> Put this comment at the top of your file:
> # coding: utf-8

By the way, it is an IronPython bug to silently replace characters
with ?-marks. CPython produces this warning:

sys:1: DeprecationWarning: Non-ASCII character '\xc3' in file test.py
on line 1, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details

Seo Sanghyeon

More information about the users mailing list