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

Article translations Article translations
Article ID: 259306
This article was previously published under Q259306
Expand all | Collapse all


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 script
Microsoft JScript features - non-ECMA


Article ID: 259306 - Last Review: May 22, 2013 - Revision: 2.0
kbtshoot kbprb KB259306
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from