Thank you, Kevin.
I am using CGI.pm. The problem I have is like this:
A user input is 'faßt' and after it is encoded by javascript encodeURI(), it becomes like this: 'fa%C3%9Ft'. When 'fa%C3%9Ft' is passed into a perl code, how can I convert it back to 'faßt'?
Thanks.