我们在上传一张用中文命名的图片在URL中,但调用时往往会出现中文乱码问题。
找到你tomca下的conf文件夹中server.xml文件,找到如下代码:
server.xml文件,找到如下代码:
里面有两句相似的,都加上 URIEncoding="UTF-8" 如下: