You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
non-ascii character in the path of messages.dat #165
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?
Activity
AyrA commentedon Jun 6, 2013
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
tyrylu commentedon Jun 7, 2013
Yeach, they do that internally. Perhaps there is better way of getting the user's appdata path?
AyrA commentedon Jun 7, 2013
You can use the environment variable %APPDATA% on windows, or check if the platform is windows NT and just "assume" UTF-8.
PeterSurda commentedon Apr 28, 2016
Is this still a problem?
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database
Fix exception in class_sqlThread on Windows when loading database