'Saxon XSLT : error when input xml file has utf8 character in name

I am using saxon in a python file with help of a subprocess :

subprocess.call(f"java -cp C:\saxon\SaxonHE10-6J\saxon-he-10.6.jar net.sf.saxon.Transform -t -s:{input} -xsl:{xslt} -o:{output}")

(Ref: Use saxon with python)

It is working fine, but not with input filenames including special utf-8 characters as "é" like in "illustré" as you can see in this error message :

Saxon-HE 10.6J from Saxonica Java version 17.0.1 Source file U:\collections\17_01_2019_illustré\illus_edited (1).xml does not exist

How can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source