swish-python icon indicating copy to clipboard operation
swish-python copied to clipboard

Python 2 and non-ascii characters in the message

Open davidparsson opened this issue 6 years ago • 0 comments

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.

davidparsson avatar Aug 20 '19 08:08 davidparsson