To set some things strait:
quote:
Originally posted by absorbation
Can you post the source code please
download the script pack he posted. No need for anything else
quote:
Originally posted by John Anderton
You could have downloaded the plsc, renamed the extention to zip and extracted it since plsc's are basically .zips
That wouldn't have solved his issue as the error is in how the JS file is saved. Even if manually added Plus! will not be able to read the JS file properly.
If you meant he could have attached the JS file directly to his post without making a script pack: helpers could easly extract the files for themselfs (at least they should know how). Also if he did that, he would still have a problem with creating script packs since the XML file wasn't unicode either.
quote:
Originally posted by mickael9
It's the encoding of the js file. It should be AINSI
(I've converted it and it works fine)
As Patchou said, the encoding can perfectly be unicode. In fact it would be a bit better actually. Though the encoding should not matter, but only if the file is encoded properly in ansi or unicode (read further for more)...
-------------------------------------------------------------------------------------
Now for the real deal:
quote:
Originally posted by DarthCrap
what was the original encoding of the js file? EDIT : it was unicode
Actually it wasn't!
quote:
Originally posted by DarthCrap
Any ideas why it was getting mostly deleted in unicode and not in ansi then?
Yes... What did you use to create those JScript files?
Because the file was NOT properly written as an unicode file. The characters themselfs were written as unicode but the file itself is missing the special 2 byte unicode header (known as the BOF header) which is mandatory for every proper unicode file.
Since that special header is not present in the file, Plus! does not reconize the file as an unicode file and will simply read it as an ansi text file (since text files do not have that special 2 byte BOF header).
And because Plus! reads it as a normal ansi file, it stops reading after the second byte because that byte (0x00) isn't a proper ascii character and thus only "/" is shown (which was the first character in the file).
In other words, use a proper editor to save your files with (eg: notepad) and you wont have chopped of scripts...
Secondly the error you got that the script couldn't be started is because the file ScriptInfo.xml must be saved in the same encoding as defined in the XML header and this should actually be unicode.