swish-python
swish-python copied to clipboard
Python 2 and non-ascii characters in the message
I've been trying to create payments where the message contains Swedish characters (åäö) in a Python 2 project. When I got the callback, Python failed to parse the message.
Wouldn't it be reasonable to encode the data as UTF-8, and add the appropriate headers? I haven't tried it myself, but I assume that doing so should resolve this issue.