Home  >  Article  >  Java  >  Get method to pass Chinese

Get method to pass Chinese

巴扎黑
巴扎黑Original
2016-12-20 16:25:221612browse

Transmit Chinese by get method,
%E8%89%B2%E6%83%85
%E6%9A%B4%E5%8A%9B
%E6%B3%95%E8%BD%AE%E5%8A% 9F

Transcode java.net.URLEncoder.encode(param,"UTF-8");

Reverse java.net.URLDecoder.decode(param,"UTF-8");

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Ellipsis in JavaNext article:Ellipsis in Java