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
-- database connection set is not utf-8 (ie : win1254)
-- exception is raised with a database exception which includes special charset characters (
ie : CREATE EXCEPTION ACCASH_NOTACTIVE 'Kasa kullanım dışı. Kod:'; --> and when raising this exception we get unicodedecode error)
in http://fbcore.py line 562. there is also a todo remark below this line.
best regards
The text was updated successfully, but these errors were encountered:
This is hard one without ideal solution. I changed the code to use locale.getpreferredencoding() instead utf-8. This solution has next characteristics:
- solves problem with national OS versions that return OS-related error messages with national characters
- solves problem with national characters in error messages returned by Firebird if they match the preferred OS encoding. In most cases they match, but in cases they don't developers can go around this issue with proper OS locale settings.
Submitted by: Cagatay Tengiz (ctengiz)
This happens only when :
-- database connection set is not utf-8 (ie : win1254)
-- exception is raised with a database exception which includes special charset characters (
ie : CREATE EXCEPTION ACCASH_NOTACTIVE 'Kasa kullanım dışı. Kod:'; --> and when raising this exception we get unicodedecode error)
in http://fbcore.py line 562. there is also a todo remark below this line.
best regards
The text was updated successfully, but these errors were encountered: