I am sure you will find this template useful: Download this xslt and check out the one called url-encode-num http://advanced-internal-onebox.googlecode.com/files/obox_stylesheet.xslt
It converts any special character ... Well, any of those listed here with their numeric encodings:
<xsl:variable name="latbis">¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"<>=</xsl:variable> <xsl:variable name="digit1">111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222220000</xsl:variable> <xsl:variable name="digit2">666666666777777777788888888889999999999000000000011111111112222222222333333333344444444445555552777</xsl:variable> <xsl:variable name="digit3">123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123452465</xsl:variable>
But easy to upgrade.
Let me know if this is what you were looking for.
Pablo
source share