@Test
public void escapeURLEncoding() {

    LocaleUtil.setContext(Locale.CHINA, "GBK");
    assertEquals("%D6%D0%BB%AA%C8%CB%C3%F1%B9%B2%BA%CD%B9%FA", StringEscapeUtil.escapeURL("中华人民共和国"));
    LocaleUtil.setContext(Locale.US, "8859_1");
    assertEquals("%3F%3F%3F%3F%3F%3F%3F", StringEscapeUtil.escapeURL("中华人民共和国"));
    LocaleUtil.resetContext();
}