【发布时间】:2020-05-12 13:53:28
【问题描述】:
我正在缓存 XML 实体,因此我不必从服务器获取它们,从而导致 XML 标头标签像
<!ENTITY % xhtml-special-local SYSTEM "/Users/test/Library/Application Support/test/xhtml-special.ent" > %xhtml-special-local;
除非用户名包含 öäå 或类似的非 ascii 字符,否则此方法非常有用。有了这些,我得到以下解析器错误
java.net.MalformedURLException: no protocol: /Users/test/Library/Application Support/testööö/xhtml-special.ent
实体路径应该如何转义才能被解析器接受?
【问题讨论】: