问题复现
param=UrLEncoder.decode("34erfssc+dfkcjj","utf-8");
结果:34erfssc dfkcjj
先encode,再decode
enParam=UrLEncoder.encode("34erfssc+dfkcjj","utf-8");
param=UrLEncoder.decode(enParam,"utf-8");
结果:34erfssc+dfkcjj
问题复现
param=UrLEncoder.decode("34erfssc+dfkcjj","utf-8");
结果:34erfssc dfkcjj
先encode,再decode
enParam=UrLEncoder.encode("34erfssc+dfkcjj","utf-8");
param=UrLEncoder.decode(enParam,"utf-8");
结果:34erfssc+dfkcjj