更新时间:2022-11-22 22:56:20
您可以在将logsPath传递给视图之前对其进行编码,并在检索内容时对其进行解码
You could encode the logsPath before passing it on the view and decode it when retrieving content
logsPath = "C:\abc\def\ght";
logsPath = URLEncoder.encode(logsPath, "UTF-8"); // Or "ISO-8859-1"