File: troubleshooting.rst

package info (click to toggle)
python-schwifty 2024.09.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,072 kB
  • sloc: python: 3,057; makefile: 209; sh: 9
file content (12 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Troubleshooting
===============

UnicodeDecodeError on import
----------------------------

Since ``schwifty``'s bank regisry contains bank names with non-ASCII characters, the corresponding
JSON files are encoded in UTF-8. In some Docker container setups (and possibly elsewhere) it might
occur that a ``UnicodeDecodeError`` is raised on import. This can be fixed in most cases by
adjusting the locales setup to support UTF-8. See `this blog post
<http://jaredmarkell.com/docker-and-locales/>`_ for more information. Since version ``2022.04.0``
this issue has been fixed, so that ``schwifty`` uses the correct encoding by default.