Jump to content

URL decoding


FelixB

Recommended Posts

Hi,i have this url:/search?q=drehstuhl%2Bkaputt&hl=de&ie=UTF-8&start=10&sa=Nhow can I decode it into/search?q=drehstuhl+kaputt&hl=de&ie=UTF-8&start=10&sa=Nunfortunately I can't use replace() :)thanks!Felix

Link to comment
Share on other sites

Unfortunatly, XPath 1.0 and XSLT 1.0 don't alone provide any way of doing that. XPath 2.0 offers the urldecode() function, which is used exactly for that.EXSLT has the regular expression functions, which can be used for that, but their support is not completely consistent across processors.What XSLT processor are you using? Could you possibly use XSLT 2.0 somehow?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...