yu199195 commented on a change in pull request #4812: Fix 4805.
URL:
https://github.com/apache/incubator-shardingsphere/pull/4812#discussion_r393687062
##########
File path:
sharding-sql-test/src/main/java/org/apache/shardingsphere/test/sql/loader/SQLCasesLoader.java
##########
@@ -73,13 +75,14 @@ public SQLCasesLoader(final String rootDirection) {
return result;
}
+ @SneakyThrows
private static Map<String, SQLCase> loadSQLCasesFromTargetDirectory(final
String path) {
Map<String, SQLCase> result = new TreeMap<>();
URL url = SQLCasesLoader.class.getClassLoader().getResource(path);
if (null == url) {
return result;
}
- File filePath = new File(url.getPath());
+ File filePath = new File(URLDecoder.decode(url.getPath(), "UTF-8"));
Review comment:
URLDecoder.decode() Without loss of performance, but also to prevent Chinese
garbled codeļ¼
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services