From: Joshua May Date: Sat, 14 Sep 2019 17:49:52 +0000 (-0700) Subject: Can't get enough BYTES??? Have I got the commit for you! X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=5154f0d1df433d08e2874d5581b2d43cb85ba6d9;p=sirius.git Can't get enough BYTES??? Have I got the commit for you! --- diff --git a/sirius/web/printer_print.py b/sirius/web/printer_print.py index 5f26f16..2bf8c42 100644 --- a/sirius/web/printer_print.py +++ b/sirius/web/printer_print.py @@ -102,7 +102,7 @@ def preview(user_id, username, printer_id): assert user_id == login.current_user.id assert username == login.current_user.username - message = flask.request.data + message = flask.request.data.decode('utf-8') pixels = image_encoding.default_pipeline( templating.default_template(message, from_name=login.current_user.username)) png = io.BytesIO()