aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
index 6971fbbb..8b27fb74 100644
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
@@ -405,9 +405,9 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices
String configuredChar = getString(configKey);
if (configuredChar != null)
{
- if (configuredChar.length() != 2 || configuredChar.getBytes(StandardCharsets.UTF_8).length != 1)
+ if (configuredChar.length() != 1)
{
- throw new RuntimeException(configKey + " must be a single byte UTF-8 character");
+ throw new RuntimeException(configKey + " must be a single UTF-8 character");
}
return configuredChar.charAt(0);
}