escape() and unescape() have always worked for me :-) i.e.
escape('The quick brown fox') -> The%20quick%20brown%20fox unescape('The%20quick%20brown%20fox') -> The quick brown fox Luke Truppe Steven wrote: > Mark Gibson schrieb: > >> Javascript has the functions: >> >> decodeURI(s) and decodeURIComponent(s) >> > I get a string like this: > > Stumpf+einer+Palme%2C+ausgeh%F6hlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert > > If this string is inside the variable "test" and i do: > var newtest = decodeURIComponent(test); > > I get the error "malformed URI sequence". > > I've looked documentation on > http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference > but there i don't see much about that function... > > Thanks for the fast reply! What am i doing wrong ? > > > best regards, > Truppe Steven > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ -- zinc Roe Design www.zincroe.com (647) 477-6016 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/