Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Unicode symbols are not supported in pages header #3883

Open
VasiliyD opened this issue Apr 18, 2018 · 6 comments
Open

Unicode symbols are not supported in pages header #3883

VasiliyD opened this issue Apr 18, 2018 · 6 comments

Comments

@VasiliyD
Copy link

Hi,
wkHtmlToPdf fails to display unicode symbols in pages header

If I run next command, the "русский текст" will be replaced with "????? ????" in header.

wkhtmltopdf.exe --header-center "русский текст" Input.html Output.pdf

@VasiliyD VasiliyD changed the title Unicode symbols in pages header not supported Unicode symbols are not supported in pages header Apr 18, 2018
@hakimio
Copy link

hakimio commented Apr 19, 2018

Maybe just use html header instead?

@VasiliyD
Copy link
Author

Yeah, that's definitely the first thing which I'm going to check as workaround. But it would be cool to fix the way how this tool parse unicode parameters (the root problem).
This will solve all sort of problems (like inability to convert files with unicode names, etc.)

@hakimio
Copy link

hakimio commented Apr 19, 2018

There hasn't been any significant activity on this project for quite a while. I doubt issue like yours will get any attention anytime soon unless you make a pull request yourself.

@VasiliyD
Copy link
Author

I'm not sure I'll have time to look into it. But if there is some pitfalls or previous attempts to fix this, that somebody aware of, it would be helpful to know

@hakimio
Copy link

hakimio commented Apr 19, 2018

Maybe the following will be helpful:
4b321bd
#2858

@mikehaertl
Copy link

mikehaertl commented Sep 23, 2019

I can not confirm this on Linux. I tested this with 0.12.5 and this command works just fine:

wkhtmltopdf --header-center "русский текст" index.html output.pdf

wk_output_pdf

Note though, that on Linux it's important that your locale env vars are set to a Unicode variant:

$ env | grep LANG
LANG=de_DE.UTF-8 

I have no idea how this is handled on Windows systems which is what the OP seems to be using.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants