[ZeroBrane Studio] Re: Cannot activate a file with chinese path when using ZeroBrane remote debugging

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Wed, 2 Aug 2017 20:44:08 -0700

Hi Sun Zhuo,

I guess windows encode Chinese characters as GBK and zerobrane encode to UTF8?

Yes, it could be the reason for this. The debugging (both initiated
from the IDE and externally) works for me with Unicode (Chinese and
Russian) symbols in the file path, but my code page is 437. It looks
like you have already seen this ticket
(https://github.com/pkulchenko/ZeroBraneStudio/issues/559), which has
related discussion.

It does seem like there is some strange character conversion in this
case, which I don't have explanation for, but I can say that the
debugger shows the path (c:/users/mixwind/desktop/싐ꢽ쓎ﺼ킼//test.mcs) as
reported by the Lua engine (with some casing changes, but not much
else). Can you print `debug.getinfo(1,"S").source` to a file from your
test.mcs script to see what path is reported by the interpreter?

Paul.

On Wed, Aug 2, 2017 at 9:23 AM, SUN Zhuo <mixwind@xxxxxxxxx> wrote:
I created a folder named "新建文件夹" on windows desktop and tried to use remote
debugging. Then the zerobrane prompted the following:

Debugging suspended at 'c:/users/mixwind/desktop/싐ꢽ쓎ﺼ킼//test.mcs:1'
(couldn't activate the file).

I guess windows encode Chinese characters as GBK and zerobrane encode to
UTF8?

Other related posts: