You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Alex O'Ree (Jira)" <ji...@apache.org> on 2024/02/12 15:32:00 UTC

[jira] [Created] (VELOCITY-975) Unicode characters cause issues

Alex O'Ree created VELOCITY-975:
-----------------------------------

             Summary: Unicode characters cause issues
                 Key: VELOCITY-975
                 URL: https://issues.apache.org/jira/browse/VELOCITY-975
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.3
            Reporter: Alex O'Ree


Ran across some cases of processing files using velocity with some unicode characters in it that caused some unexpected results. Is there anything that I can do to prevent or mitigate this short of stripping out a set of bad characters before i had the script off to velocity?

 

org.apache.velocity.exception.ParseErrorException: Lexical error,   Encountered: "\u00a0" (160), after : "" at *unset*[line 1, column 19]
        at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1437)
        at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:239)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org