Windows の \include コマンドで cjk パスを使用するにはどうすればよいですか?

Windows の \include コマンドで cjk パスを使用するにはどうすればよいですか?

\input または \include コマンドを使用して、名前に cjk 文字が含まれるファイルをインクルードします。

\documentclass[UTF8]{ctexart}
\title{input with cjk path}
\begin{document}
\maketitle
\input{中文}
\end{document}

そして中文.texは

hello, world

utf8エンコード、gbkエンコードを試しましたが、xelatexは同じエラーを表示します

LaTeX Error: File `涓枃.tex' not found.

オペレーティング システムは Windows で、xelatex コマンドを使用します。

xelatex a.tex

コード ページを変更してみましたが、まだ動作しません。

chcp 65001
xelatex a.tex

そしてa.logは

This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/W32TeX)(preloaded format=xelatex 2017.6.21)  3 JUL 2017 20:55
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./a.tex
(./a.tex
LaTeX2e <2017-04-15>
...
...
...
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 4.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 4.


LaTeX Warning: No \author given.


! LaTeX Error: File `中文.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: X

)
(\end occurred when \ifx on line 5 was incomplete)
(\end occurred when \ifx on line 5 was incomplete) 
Here is how much of TeX's memory you used:
 19344 strings out of 493005
 406504 string characters out of 6131656
 441240 words of memory out of 5000000
 23197 multiletter control sequences out of 15000+600000
 6602 words of font info for 39 fonts, out of 8000000 for 9000
 1348 hyphenation exceptions out of 8191
 57i,6n,68p,10436b,270s stack positions out of 5000i,500n,10000p,200000b,80000s

No pages of output.

答え1

Hello World ファイルを生成し中文.tex、メイン ファイルを UTF-8 で保存すると、Windows 10 (および texlive 2017 cygwin tex) で動作します。

ここに画像の説明を入力してください

その後、メインファイルをgbkエンコードで再保存すると、ファイルが見つからないというエラーが発生します。私の場合は、

! LaTeX Error: File `����.tex' not found.

あなたの例のように間違った文字が表示されるのではなく、すべての文字が U+fffd「置換文字」に置き換えられますが、utf-8 デコードの詳細は、使用している xetex のバージョンによって異なる場合があります。

関連情報