#StackBounty: #luatex #windows #latexmk How can Latexmk compile file that contains Chinese Characters in path in Windows 10?

Bounty: 50

I can use the following command in Windows without problem:

latexmk -lualatex -shell-escape "xxx.tex"

But if the filename contains Chinese character then it fails:

latexmk -lualatex -shell-escape "中文.tex"

I tried to change the default code page to 65001, it doesn’t help. The only difference is that it now displays all the Chinese characters as blocks instead of some strange characters.

How to make it work?

The output is like the following(Notice the strange characters ����):

Latexmk: This is Latexmk, John Collins, 17 March 2019, version: 4.63b.
Latexmk: In reading rule 'lualatex' in 'c:/Users/Jeff/thesis2.0/����NodeJs�ĵ��̴���ϵͳ�����ʵ��.fdb_latexmk',
  destination has different name than configured...
Rule 'lualatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'chapter4/sku-lock-design.tex'
...
----------------------
C:texlive2019binwin32runscript.tlu:907: command failed with exit code 12:
perl.exe c:texlive2019texmf-distscriptslatexmklatexmk.pl -lualatex -shell-escape -enable-write18 -synctex=1 -interaction=nonstopmode -outdir=c:/Users/Jeff/thesis2.0 -f ����NodeJs�ĵ��̴���ϵͳ�����ʵ��


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.