diff --git a/src/main/java/com/cultural/heritage/utils/RegexUtils.java b/src/main/java/com/cultural/heritage/utils/RegexUtils.java index 6ea95cd..fc13a9c 100644 --- a/src/main/java/com/cultural/heritage/utils/RegexUtils.java +++ b/src/main/java/com/cultural/heritage/utils/RegexUtils.java @@ -61,7 +61,7 @@ public class RegexUtils { * @param input * @return */ - public static String encodeUrl(String input) { return input.replaceAll("[^\\w.]", "_"); } + public static String encodeUrl(String input) { return input.replaceAll("[^\\\\u4e00-\\\\u9fa5.]", "_"); }