CoffeeScript-Sublime-Plugin icon indicating copy to clipboard operation
CoffeeScript-Sublime-Plugin copied to clipboard

Fix to compile with multibyte characters

Open shirosaki opened this issue 13 years ago • 1 comments

If a source file contains multibyte characters (Japanese characters), Check Syntax or Display JavaScript fails with UnicodeEncodeError on Windows. Adding encode/decode with utf-8 works without errors.

I got the following error messages with multibyte characters source file.

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 356, in run_
  File ".\CoffeeScript.py", line 90, in run
  File ".\CoffeeScript.py", line 32, in brew
  File ".\CoffeeScript.py", line 14, in run
  File ".\subprocess.py", line 701, in communicate
  File ".\subprocess.py", line 911, in _communicate
UnicodeEncodeError: 'ascii' codec can't encode characters in position 21-23: ordinal not in range(128)

shirosaki avatar Jan 10 '13 04:01 shirosaki

+1

LYY avatar Apr 23 '13 17:04 LYY