diff --git a/app.py b/app.py index 9853e56..7be2491 100644 --- a/app.py +++ b/app.py @@ -52,8 +52,8 @@ def home(): def generate(): name = request.args.get('filename', 'unnamed.pdf') app.logger.info('POST /pdf?filename=%s' % name) - #print ( request.get_data() ) - html = HTML(string=request.get_data()) + #print ( request.get_data(as_text=True) ) + html = HTML(string=request.get_data(as_text=True)) css, font_config = css_for_extra_fonts() pdf = html.write_pdf(stylesheets=[css], font_config=font_config) response = make_response(pdf) diff --git a/test.html b/test.html index 2a0e535..5f90fd3 100644 --- a/test.html +++ b/test.html @@ -5,5 +5,9 @@

Hello World

+

Hello Wêreld!

+

Здравей свят!

+

გამარჯობა მსოფლიო!

+

Përshendetje Botë!

\ No newline at end of file