{"action":"closed","issue":{"url":"https://api.github.com/repos/venusdrogon/feilong-core/issues/11","repository_url":"https://api.github.com/repos/venusdrogon/feilong-core","labels_url":"https://api.github.com/repos/venusdrogon/feilong-core/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/venusdrogon/feilong-core/issues/11/comments","events_url":"https://api.github.com/repos/venusdrogon/feilong-core/issues/11/events","html_url":"https://github.com/venusdrogon/feilong-core/issues/11","id":162372267,"number":11,"title":"URIUtil.decodeISO88591String(String, String) 通常是解析 HttpServletRequest才会用到, 可以移到feilong-servlet包","user":{"login":"venusdrogon","id":3479472,"avatar_url":"https://avatars.githubusercontent.com/u/3479472?v=3","gravatar_id":"","url":"https://api.github.com/users/venusdrogon","html_url":"https://github.com/venusdrogon","followers_url":"https://api.github.com/users/venusdrogon/followers","following_url":"https://api.github.com/users/venusdrogon/following{/other_user}","gists_url":"https://api.github.com/users/venusdrogon/gists{/gist_id}","starred_url":"https://api.github.com/users/venusdrogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venusdrogon/subscriptions","organizations_url":"https://api.github.com/users/venusdrogon/orgs","repos_url":"https://api.github.com/users/venusdrogon/repos","events_url":"https://api.github.com/users/venusdrogon/events{/privacy}","received_events_url":"https://api.github.com/users/venusdrogon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/venusdrogon/feilong-core/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"venusdrogon","id":3479472,"avatar_url":"https://avatars.githubusercontent.com/u/3479472?v=3","gravatar_id":"","url":"https://api.github.com/users/venusdrogon","html_url":"https://github.com/venusdrogon","followers_url":"https://api.github.com/users/venusdrogon/followers","following_url":"https://api.github.com/users/venusdrogon/following{/other_user}","gists_url":"https://api.github.com/users/venusdrogon/gists{/gist_id}","starred_url":"https://api.github.com/users/venusdrogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venusdrogon/subscriptions","organizations_url":"https://api.github.com/users/venusdrogon/orgs","repos_url":"https://api.github.com/users/venusdrogon/repos","events_url":"https://api.github.com/users/venusdrogon/events{/privacy}","received_events_url":"https://api.github.com/users/venusdrogon/received_events","type":"User","site_admin":false},"assignees":[{"login":"venusdrogon","id":3479472,"avatar_url":"https://avatars.githubusercontent.com/u/3479472?v=3","gravatar_id":"","url":"https://api.github.com/users/venusdrogon","html_url":"https://github.com/venusdrogon","followers_url":"https://api.github.com/users/venusdrogon/followers","following_url":"https://api.github.com/users/venusdrogon/following{/other_user}","gists_url":"https://api.github.com/users/venusdrogon/gists{/gist_id}","starred_url":"https://api.github.com/users/venusdrogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venusdrogon/subscriptions","organizations_url":"https://api.github.com/users/venusdrogon/orgs","repos_url":"https://api.github.com/users/venusdrogon/repos","events_url":"https://api.github.com/users/venusdrogon/events{/privacy}","received_events_url":"https://api.github.com/users/venusdrogon/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/venusdrogon/feilong-core/milestones/1","html_url":"https://github.com/venusdrogon/feilong-core/milestones/1.7.3","labels_url":"https://api.github.com/repos/venusdrogon/feilong-core/milestones/1/labels","id":1847304,"number":1,"title":"1.7.3","description":"1.7.3","creator":{"login":"venusdrogon","id":3479472,"avatar_url":"https://avatars.githubusercontent.com/u/3479472?v=3","gravatar_id":"","url":"https://api.github.com/users/venusdrogon","html_url":"https://github.com/venusdrogon","followers_url":"https://api.github.com/users/venusdrogon/followers","following_url":"https://api.github.com/users/venusdrogon/following{/other_user}","gists_url":"https://api.github.com/users/venusdrogon/gists{/gist_id}","starred_url":"https://api.github.com/users/venusdrogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venusdrogon/subscriptions","organizations_url":"https://api.github.com/users/venusdrogon/orgs","repos_url":"https://api.github.com/users/venusdrogon/repos","events_url":"https://api.github.com/users/venusdrogon/events{/privacy}","received_events_url":"https://api.github.com/users/venusdrogon/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":10,"state":"open","created_at":"2016-06-24T15:00:07Z","updated_at":"2016-06-27T04:42:15Z","due_on":"2016-06-29T16:00:00Z","closed_at":null},"comments":1,"created_at":"2016-06-27T04:29:05Z","updated_at":"2016-06-27T04:42:15Z","closed_at":"2016-06-27T04:42:15Z","body":"```JAVA\r\n    /**\r\n     * {@link CharsetType#ISO_8859_1} 的方式去除乱码.\r\n     * \r\n     * <p>\r\n     * {@link CharsetType#ISO_8859_1} 是JAVA网络传输使用的标准 字符集\r\n     * </p>\r\n     * \r\n     * <h3></h3>\r\n     * \r\n     * <blockquote>\r\n     * <ul>\r\n     * <li>tomcat server.xml Connector URIEncoding=\"UTF-8\"</li>\r\n     * <li>{@code <fmt:requestEncoding value=\"UTF-8\"/>}</li>\r\n     * </ul>\r\n     * </blockquote>\r\n     *\r\n     * @param str\r\n     *            字符串\r\n     * @param charsetType\r\n     *            使用的编码,see {@link CharsetType}\r\n     * @return 如果 <code>str</code> 是null或者empty,返回 {@link StringUtils#EMPTY}<br>\r\n     * @see \"org.apache.commons.codec.net.URLCodec#encode(String, String)\"\r\n     * @see \"org.apache.taglibs.standard.tag.common.fmt.RequestEncodingSupport\"\r\n     * @see \"org.apache.catalina.filters.SetCharacterEncodingFilter\"\r\n     */\r\n    @Deprecated\r\n    public static String decodeISO88591String(String str,String charsetType){\r\n        return Validator.isNullOrEmpty(str) ? StringUtils.EMPTY\r\n                        : StringUtil.newString(StringUtil.getBytes(str, CharsetType.ISO_8859_1), charsetType);\r\n    }\r\n```\r\n\r\n\r\n这个方法 一般用在  feilong-servlet module 里面\r\n\r\n```JAVA\r\n    public static String getRequestFullURL(HttpServletRequest request,String charsetType){\r\n        String requestURL = getRequestURL(request);\r\n        String queryString = request.getQueryString();\r\n        return Validator.isNullOrEmpty(queryString) ? requestURL\r\n                        : requestURL + URIComponents.QUESTIONMARK + URIUtil.decodeISO88591String(queryString, charsetType);\r\n    }\r\n```\r\n\r\n\r\n可以移到这个方法 下面 或者有其他优化方法"}}
{"actor":{"display_login":"venusdrogon"}}