Non-ASCII characters in script
"Mario Ajzerle" <[email protected]> Thu, 21 Apr 2005 16:35:17 -0400
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <D0A42D1E788E204AAEBCD688D6D1DAB8015D7FB1@fbisrv01.hq.freebalance.com> |
I have a simple script (that adds two variables)
String x;
String é;
String result;
result = é + x;
that uses a non-ASCII character as a variable name. BSH parser does not parse correctly this variable.
In the code
java.io.FileReader reader = new java.io.FileReader(myFileName);
Parser parser = new Parser(reader);
while (!parser.Line())
{
SimpleNode node = parser.popNode();
...
I get 1, 3 and 4. row corectly parsed and for the 2. row a get BSHAmbiguousName.
Is there a setting I can use to tell BeanShell Parser that I want to work with UTF characters.
Thanks,
Mario