Microsoft KB Archive/259306

= 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 ID: 259306

Article Last Modified on 8/8/2007

-

APPLIES TO


 * Microsoft Visual Basic, Scripting Edition 1.0
 * Microsoft JScript 5.5
 * Microsoft JScript 5.5
 * Microsoft JScript 5.0
 * Microsoft JScript 4.0
 * Microsoft JScript 3.0
 * Microsoft JScript 2.0
 * Microsoft JScript 1.0

-



This article was previously published under Q259306



SYMPTOMS
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 &quot;acute e.&quot; This problem occurs in Microsoft Visual Basic, Scripting Edition (VBScript) and in Microsoft JScript.



WORKAROUND
To work around this problem, use square brackets around the function name in VBScript. The following is an example:

objectvariable.[functionname]



STATUS
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

http://msdn2.microsoft.com/en-us/library/ms950396.aspx

ECMA and ISO/IEC C# and Common Language Infrastructure standards

http://msdn.microsoft.com/net/ecma

Microsoft JScript features - non-ECMA

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsgrpnonecmafeatures.asp

Keywords: kbtshoot kbprb KB259306

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.