Menu

Exception with Strings in other languages

2009-02-23
2012-12-07
  • Nobody/Anonymous

    ParseException while testing with Strings in other Languages

    This is an example:

    Select CommonData.LocUnitId,SourceText from CommonData,Application
    where appName='101' AND sourceText='الأسماء '

    net.sf.jsqlparser.parser.ParseException: Encountered "\u0644" at line 2, column 39.
           at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:5901)
        at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:5779)
        at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:146)
        at net.sf.jsqlparser.parser.CCJSqlParserManager.parse(CCJSqlParserManager.java:38)

    What is the solution for this?

     
    • Nobody/Anonymous

      Hi, I am also interested to know if this parser supports UTF-8 characters, If it doesnt currently supported can the place where it accepts InputStreamReader be quickly  changed to support this?

      Waiting for a reply,
      Thanks,
      Ashwin.

       

Log in to post a comment.