aspose file tools*
The moose likes Java in General and the fly likes about encoding a chinese character in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "about encoding a chinese character in url" Watch "about encoding a chinese character in url" New topic
Author

about encoding a chinese character in url

BiBi Chan
Greenhorn

Joined: Jul 08, 2013
Posts: 2
Help ~
i was unable to encode a chinese char cause it reply me other words.



It output is different when encoded.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

Regardless of what characters are in your URL parameters, you should always URL-encode them. They might contain an equals sign or an ampersand, for example, which would lead to confusion. That's why URL-encoding exists. So like this:

BiBi Chan
Greenhorn

Joined: Jul 08, 2013
Posts: 2
which mean i have to encode all?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Yup.


luck, db
There are no new questions, but there may be new answers.
 
 
subject: about encoding a chinese character in url