non-ascii character in the path of messages.dat #165
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
when you are determining the appdata path on windows, you get the value in whatever encoding windows chooses, which then results in an OperationalError during db connection opening. It would be useful to decode it to an unicode string, perhaps using sys.getfilesystemencoding. And it would help to have the whole logic only in shared, not duplicated it in the main script. Or is there any difference?
windows uses unicode since Windows NT. GetFileSystemEncoding sometimes returns mbcs on Windows even if it is unicode:
http://docs.python.org/2/library/sys.html#sys.getfilesystemencoding
Yeach, they do that internally. Perhaps there is better way of getting the user's appdata path?
You can use the environment variable %APPDATA% on windows, or check if the platform is windows NT and just "assume" UTF-8.
Is this still a problem?