scripting - help dealing with special chars in file path

 From:  9krausec
9530.1 
Been struggling with utf-8 encoding / decoding in Python now to drive a process chain that moi is part of. Figured out the python bit, but having a challenging time figuring out how to get moi to handle it with javascript. I'd appreciate any help or suggestions on how to go about it. Thanks in advance.

I have a method that that takes in a path to a .STEP, meshes and saves out a .OBJ with the same file name. Works a treat under ascii based file paths, but now I'm hitting a snag with file paths such as this -
'C:/Users/Clayton/Desktop/TMP/CAD/_output/FC205-Z05_3D__cfg__預設.step'

I can get the file to import by escaping the special characters individually such as -
'C:/Users/Clayton/Desktop/TMP/CAD/_output/FC205-Z05_3D__cfg__\u9810\u8A2D.step'

But I'm hoping there is a blanket application that ships with moi or in javascript that will automatically do the leg work for me during the import/export process in moi.

Maybe "moi.filesystem.openFileStream", but I can't seem to figure out how to get that working. The file opens up fine when opening directly through moi GUI.

This all is getting a bit exotic for me and I'd appreciate a push in the right direction. Thank you!