• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about encoding a chinese character in url

 
BiBi Chan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help ~
i was unable to encode a chinese char cause it reply me other words.



It output is different when encoded.
 
Paul Clapham
Sheriff
Pie
Posts: 20203
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which mean i have to encode all?
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic