Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug with filename containing unicode/utf8 letters #26

Closed
SuperUserNameMan opened this issue Aug 29, 2019 · 5 comments
Closed

bug with filename containing unicode/utf8 letters #26

SuperUserNameMan opened this issue Aug 29, 2019 · 5 comments
Assignees

Comments

@SuperUserNameMan
Copy link

Hello,
Very helpful project. Thanks a lot for developing and sharing it.

Context :

  • Windows 8.1 64bits (french version)
  • PdfScribe v1.0.7 downloaded from your github releases.

I found this bug :

  • When the filename of the printed pdf contains unicode/utf8 letters, the saved filename might ends-up truncated.

How to replicate :

  • Save a printed pdf as : facture_échantillons.pdf

Observed result :

  • The pdf will be saved as : facture_฀
@SuperUserNameMan SuperUserNameMan changed the title bug with filename unicode/utf8 letter bug with filename containing unicode/utf8 letters Aug 29, 2019
stchan pushed a commit that referenced this issue Sep 2, 2019
…etters) - include v9.29 of gsdll64.dll.

bumped version to 1.0.8
@stchan
Copy link
Owner

stchan commented Sep 2, 2019

looks like including a newer ghostscript dll (v9.27) has fixed this. See release v1.0.8

@stchan stchan self-assigned this Sep 2, 2019
@SuperUserNameMan
Copy link
Author

@stchan : thanks ! it works perfectly with test_âäà_êëéè€_ïî_ôö_ûüù_ÿ_ñ.pdf.

Just for curiosity, I tried with 中国要求重启谈判.pdf and with призывает.pdf, and I got this error in a dialog box : "PDF Scribe : There was a PDF generation error. Ghostscript error code -100."

@stchan
Copy link
Owner

stchan commented Sep 2, 2019

I'm guessing there's some issue with how parameters need to be encoded for Ghostscript when non-latin alphabets are involved. There was an issue filed for GhostscriptSharp (PdfScribe uses code from a very old version of Matthew Ephraim's wrapper) regarding Japanese characters, though I'm not sure if it's related.

Addressing this will have to take a backseat to #17 though, and that has to wait until I've got more time to work on PdfScribe.

@Zhuangkh
Copy link
Contributor

#40

I submitted a small fix for this problem, call the set_arg_encoding before InitAPI.

@stchan
Copy link
Owner

stchan commented Jan 19, 2022

Changes merged, included in latest release (1.1.2) - thanks for the fix - closing.

@stchan stchan closed this as completed Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants