java 字符串中特殊字符引号“ %百分号的转义

public static final String SERVER_XML =
        "\"1.0\" encoding=\"utf-8\"?>" +
        "\"2\">" +
            "" +
                "" +
                    "123.57.33.80" +
                    "8085" +
                "" +
                "" +
                    "123.57.215.63" +
                    "8085" +
                "" +
            "" +
            "" +
                "" +
                    "123.56.135.81" +
                    "8888" +
                "" +
            "" +
            "" +
                "" +
                    "123.57.215.95" +
                    "8090" +
                "" +
            "" +

"";

遇到像引号这样的需要/“转义

%好需要%25转义

你可能感兴趣的:(android)