ardata-fr / doconv

Other
15 stars 2 forks source link

it seems that doconv docx_update failed when input file name contain Chinese character #8

Open CanYellow opened 4 months ago

CanYellow commented 4 months ago

I create a docx file contain field codes, I use docx_update to update the file. the filename is something like "测试.docx". There is no error output in console, but fields in the file don't update. Seems that docxupdate.ps1 failed.

I test another filename like "test.docx", the fields update successfully.

PowerShell may handle the ps1 scripts with wrong charset. but I also copy the context as new script and change "%s" as something like "pathto\测试.docx". the script runs well with file updated. So I think something wrong happens in the process between doconv and PowerShell.

Could anybody give some clue or help? thank you in advance.

R version 4.4.1 doconv version 0.3.2 powerShell 7.4.3