[IronPython] Using iso-latin-1 character set

Laurent Debacker debackerl at gmail.com
Fri Jun 29 11:39:48 PDT 2007


Some text editors such as Notepad++ mark UTF-8 files by placing the
following three bytes at the beginning of the file: EF BB BF.

Using IronPython 2 and the .NET Framework, it works great too.

On 6/25/07, Anders M. Mikkelsen <amm at selektro.dk> wrote:
>
>  Hi
>
> 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.
>
> print "æble"          yields "?ble" on the console.
>  print u"æble"        yields "?ble" on the console.
> print u"\u00e6ble" yields "æble" on the console (as it should)
>
> Now I cannot have my non-geek collegues write \u00e6 every
> time they have to put in an 'æ' in their scripts, so I have to
> come up with a better solution.
>
> Any ideas?
>
> I'm using emacs to edit my scripts and have tried saving using
> different character encodings (including iso-latin-1 and UTF8/16).
> If I save the file as UTF8, the iso-latin-1 characters are replaced
> by two question marks (??). Sadly emacs does not support
> unicode (out-of-the-box). Wonder if that would solve my problem?
>
>
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070629/c83e6bec/attachment.html 


More information about the users mailing list