Re: Encoding scripts

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alex K. Angelopoulos [MVP] (aka-at-mvps-dot-org)
Date: 07/08/04


Date: Wed, 7 Jul 2004 22:46:37 -0500

msnews.microsoft.com wrote:
> Thanks Alex,
> my script works fine but after encoding it does not work at all and
> does not display any error msg. I have used your test.vbs which works
> fine before encoding but then again the encoded script displays the
> follwoing error regardless On Error Resume Next is turned on or off.
>
> D:\temp\test.vbs(1, 1) Microsoft VBScript compilation error: Expected
> statement
>

That's the error from the _encoded_ script?

Change the extension from "vbs" to "vbe" if you want it to be treated as an
encoded file by the VBScript engine; it can't figure it out for itself.



Relevant Pages

  • Re: Internet Explorer - Firefox
    ... David i have try to change the encoding with all the possible options i have ... If you can do it, create a test folder on your host, and upload the page to ... I imagine it is a problem with how the script is ... suppose to display a search box for flights..i am pretty sure that the ...
    (microsoft.public.publisher.webdesign)
  • Re: F is evil (was: XML::LibXML UTF-8 toString() -vs- nodeValue())
    ... I'm going nuts when I see "use encoding". ... debatable if this is even a programming language - is it ... A script is the complete program text, ... That doesn't fix the endianness, ...
    (comp.lang.perl.misc)
  • Re: [Patch] Support UTF-8 scripts
    ... For a script, the shell does not care about the encoding ... the interpreter *does* care about the encoding. ... UTF-8, meaning that non-ASCII can be used in string literals, ... > signature, so introducing a signature for UTF-8 does not win anything. ...
    (Linux-Kernel)
  • Re: invalid byte sequence in US-ASCII (ArgumentError)
    ... Result in Ruby 1.8: ... the script on Windows, ... valid in that locale, and check no exception is raised. ... Using the locale encoding does the right thing here. ...
    (comp.lang.ruby)
  • Re: Unicode support
    ... I convert string to the form it was in the script file, ... Really, matter is more complicated, because if encoding system happens ... Second problem is that if I want for some reason to change encoding ... So I have to embed actual value of [encoding system] into procedure body ...
    (comp.lang.tcl)