When I refer to Python, I mean the Python interpreter. The coding line *should* work everywhere but it is well known that it doesn't.
This is related to pyinstaller only to the extent that the "proper" solution involves either modifying a Python system file (site.py) or adding a file that gets executed as Python starts. I don't know if either of those is a problem when configuring a build with pyinstaller. It seems this would be a common problem unless no-one uses unicode, so I thought the best solution might be known. As I posted separately, I'm unable to build on Windows XP now anyway because the "ImportError: No module named multiarray" is back despite the file being present in the build. Since I was able to build fine yesterday, it seems likely that something I've added for unicode support is related to the failure. I honestly don't see how, since the changes are all pretty simple and do not involve any new libraries. Lynn On Nov 5, 2012, at 2:31 PM, Martin Zibricky <[email protected]> wrote: > Lynn Oliver píše v Po 05. 11. 2012 v 13:08 -0800: >> For OSX, you can set the encoding by placing the following as the >> first or second line of a module: #-*- coding: utf-8 -*- >> >> That doesn't work on Windows, as Python apparently sets the encoding >> when starting up and won't change it later. > > That's weird. The coding line should work everywhere, right? > > When you speak about Python do you mean 'Python interpreter' or the > executable created by pyinstaller? > > How is it related to pyinstaller itself? Pyinstaller just uses compiled > python byte code and thus I think the coding line does not matter in > this situation. > > Could it be that the python locale should be set properly in your app? > > What are you trying to fix? > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
