Sublime Forum

How do I use a build system on Unicode filenames?

#1

I’m trying to use a build system that looks like this:

{ "cmd": "xelatex", "-interaction=nonstopmode", "-papersize=letter", "$file"], "selector": "text.tex.latex" }
When I run it on a file named /home/ak/project/resume/resume.tex, it completes successfully. When I run it on a file named /home/ak/project✽/resume/resume.tex, however, the following error appears in the console:

Traceback (most recent call last): File "./sublime_plugin.py", line 257, in run_ File "./exec.py", line 124, in run UnicodeEncodeError: 'ascii' codec can't encode character u'\u273d' in position 75: ordinal not in range(128)
How can I make the build system compatible with Unicode characters?

Removing Unicode characters from my filesystem is not an option.

0 Likes