Page 1 of 1

Problems of publishing Sable with scripts

Posted: Mon Jun 16, 2014 3:46 pm
by cphan
I try to publish a Sable project including a JS script file, i have the error "Error adding script file. Please check syntax" when running the spk file. My JS file has only one simple function :

function test()
{
return 'helloworld';
}

How can i fix this ?
I herewith attach my test project.
Thanks
CT

Re: Problems of publishing Sable with scripts

Posted: Tue Jun 17, 2014 1:11 pm
by Administrator
It looks like it's a bug when handling unicode files. I'm looking into it.

Re: Problems of publishing Sable with scripts

Posted: Tue Jun 17, 2014 1:25 pm
by Administrator
I've uploaded a new version of Sable that should fix this.

Re: Problems of publishing Sable with scripts

Posted: Tue Jun 17, 2014 3:12 pm
by cphan
I have tried your new version of Sable but it doesn't work.

Re: Problems of publishing Sable with scripts

Posted: Tue Jun 17, 2014 3:51 pm
by cphan
I've changed the encoding of my .js file to UTF-8, it works. Thanks!