Re: [Ironpython-users] Utility function for encoding detection

2011-10-10 Thread Michael Foord
On 10/10/2011 15:53, Markus Schaber wrote: Hi, For our embedded IronPython, we need to convert python scripts from string to files and back. To do that, I need to know the encoding of the python source for both ways, if there's one specified according to PEP 0263. (Our intended fallback is to

[Ironpython-users] Utility function for encoding detection

2011-10-10 Thread Markus Schaber
Hi, For our embedded IronPython, we need to convert python scripts from string to files and back. To do that, I need to know the encoding of the python source for both ways, if there's one specified according to PEP 0263. (Our intended fallback is to UTF8 with BOM if none is specified.) Are th