google / spatial-media

Specifications and tools for 360º video and spatial audio.
Other
1.86k stars 430 forks source link

Can't open Korean (CJK?) Path-ed video (injector) #207

Open sftblw opened 6 years ago

sftblw commented 6 years ago

When trying to open file path which contains CJK injector does not handle it.

some log

(omitted)
LOADER: Running pyiboot01_bootstrap.py
LOADER: Running pyi_rth__tkinter.py
LOADER: Running gui.py
Processing: L:\?곸긽\obs\out_handbrake.mp4

actual path is L:\영상\obs\out_handbrake.mp4.

to fix this there may be 3 way.

  1. python 3
  2. (not tested) change this to text.decode('utf-8').encode('utf-8')
  3. sys.setdefaultencoding('utf-8')

reference (korean)