You may receive an “Invalid character” error message when function names and variable names use extended characters in Visual Basic, Scripting Edition and in JScript

This article was previously published under Q259306
This article has been archived. It is offered "as is" and will no longer be updated.
When function names, variable names, and Component Object Model (COM) object names use extended characters, you may receive the following error message from the script parser:
Invalid Character
An example of an extended character is the French "acute e." This problem occurs in Microsoft Visual Basic, Scripting Edition (VBScript) and in Microsoft JScript.
To work around this problem, use square brackets around the function name in VBScript. The following is an example:

This behavior is by design.
More information
The workaround complies with the European Computer Manufacturers Association (ECMA) script specification 262. Script specification 262 defines a specific set of characters that you can use.

For additional information about VBScript and JScript, visit the following Microsoft Developer Network (MSDN) Web sites:

Windows scriptMicrosoft JScript features - non-ECMA

Article ID: 259306 - Last Review: 12/05/2015 19:36:08 - Revision: 2.0

  • kbnosurvey kbarchive kbtshoot kbprb KB259306