Commit 2797c1eb3a9a4111feb22adf38f8ab34002943a9
1 parent
1791d7cf
修正转换字符串的目标字符集属性
Showing
1 changed file
with
1 additions
and
1 deletions
ruoyi-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java
| @@ -66,7 +66,7 @@ public class CharsetKit | @@ -66,7 +66,7 @@ public class CharsetKit | ||
| 66 | 66 | ||
| 67 | if (null == destCharset) | 67 | if (null == destCharset) |
| 68 | { | 68 | { |
| 69 | - srcCharset = StandardCharsets.UTF_8; | 69 | + destCharset = StandardCharsets.UTF_8; |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) | 72 | if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) |