变音字符编码在java中不起作用

时间:2014-08-28 15:41:07

标签: java spring-mvc urlencode jsp-tags url-encoding

特殊字符编码不适用于õ和Ö但它适用于ë,Ë和Ä。 我的代码如下:

encodeUrl = encodeUrl.replaceAll("%C3%AB","%25C3%25AB"); //working for ë
encodeUrl = encodeUrl.replaceAll("%C3%8B","%25C3%258B"); //working for Ë 
encodeUrl = encodeUrl.replaceAll("%C3%84","%25C3%2584"); //working for Ä 

encodeUrl = encodeUrl.replaceAll("%C3%96","%25C3%2596");//not working Ö 
encodeUrl = encodeUrl.replaceAll("%C3%B6","%25C3%25B6");//not working ö

0 个答案:

没有答案