几种语言的urlencode


JavaScriptvar artist = "Kruder & Dorfmeister";
artist = escape(artist);Perluse URI::Escape;
my $artist = "Kruder & Dorfmeister";
$artist = uri_escape($artist);VBScriptstrArtist = "Kruder & Dorfmeister"
strArtist = Server.URLEncode(strArtist)PHP$artist = "Kruder & Dorfmeister";
$artist = urlencode(strArtist);Python
        python的情况特殊一点:
        import sys
from urllib import urlencode
artist = "Kruder & Dorfmeister"
artist = urlencode({'result':artist})
         此时artist的值为:   
result=Kruder+%26+Dorfmeister        只好自己删除开头的"result="了