2007/6/25, Sanghyeon Seo <[EMAIL PROTECTED]>: > 2007/6/25, Anders M. Mikkelsen <[EMAIL PROTECTED]>: > > 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 _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
