QuoteThere’s just one major deficiency: These methods have never been documented! Many take advantage of them by using CGI.pm directly or indirectly, as CGI.pm uses them internally. A few people have found them and use them directly. As someone with commit access to the CGI.pm repo, I’ll be documenting them shortly, once I’m done with the detour that became this post.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/perl use strict; use warnings; use CGI::Util qw(escape unescape); use utf8; print 'äöüßÄÖÜ€ ist: ',escape('äöüßÄÖÜ€'); print "\n"; print '%32%7E ist: ',unescape('%32%7E'); print "\n"; __END__ ergibt: äöüßÄÖÜ€ ist: %C3%A4%C3%B6%C3%BC%C3%9F%C3%84%C3%96%C3%9C%E2%82%AC %32%7E ist: 2~