How can Erlang os:cmd/1 run a command with Unicode characters?
cmd, erlang, operating-system, unicode
Solution
Erlang uses latin1 for its source files which means that you cannot use chinese or any other symbols which are not in the latin1 encoding directly in the code.
The easiest way to achieve what you whant is:
Name = [231,188,150,231,168,139,10].
os:cmd("touch " ++ Name).
Problem
5> os:cmd("touch 编程"). exception error: no function clause matching os:validate1([32534,31243]) (os.erl, line 330) in function os:cmd/1 (os.erl, line 165)