diff --git a/lib/payme/methods/generate_link.py b/lib/payme/methods/generate_link.py index 454fa04..5590adf 100644 --- a/lib/payme/methods/generate_link.py +++ b/lib/payme/methods/generate_link.py @@ -125,7 +125,7 @@ def to_qrcode(self, path: str = 'qr-codes', filename: str = None, **kwargs): image_name = uuid.uuid4().hex if not filename else filename image_output_path = f'{path}/{image_name}.svg' - with open(image_output_path, 'w') as svg: + with open(image_output_path, 'w', encoding='utf-8') as svg: svg.write(message.split(',')[-1]) return image_output_path