pdf2image icon indicating copy to clipboard operation
pdf2image copied to clipboard

problem with output_folder which contains Chinese

Open xwzeng opened this issue 6 years ago • 4 comments

Describe the bug I use the output_folder and it contains Chinese, but the images can't save in the right folder and the file names of them contain scrambled characters.

I have no idea with how to transform the output_folder with Chinese into rigth form.

Thanks for help!

xwzeng avatar Sep 20 '19 16:09 xwzeng

Hi,

I will need the following informations before troubleshooting the issue:

  • pdf2image version
  • OS
  • pdf file used (if you can)
  • name of the output directory that you used

Belval avatar Sep 20 '19 16:09 Belval

Hi, thanks for your reply, the information is as follows:

  • pdf2image version is 1.7.1

  • OS is win10 64bit

  • pdf file used: 中.pdf

  • output_folder ='D:/test/中', output_file='a', thread_count=2

The images finally saved in directory 'D:/test', and the file name is like '涓璡a_0-1.jpg'.

xwzeng avatar Sep 20 '19 16:09 xwzeng

Thank you, I'll investigate the issue right away.

Belval avatar Sep 20 '19 17:09 Belval

This bug does not affect Linux, unable to reproduce on Ubuntu 18.04 (will try on Windows 10)

Belval avatar Sep 20 '19 20:09 Belval