GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Util.HrefEncode should encode ampersands


https://support.genopro.com/Topic16026.aspx
Print Topic | Close Window

By PEH - Friday, January 26, 2007
Documentation for Util.HrefEncode says "Since some characters are valid in URLs as delimiters, those characters are left alone", and includes ampersand as one of the characters left untouched. However, http://www.w3.org/TR/xhtml1/#C_12 recommends that ampersands are actually encoded with the HTML entity (&ampWink. This is especially important in SVG as the interpreter rejects URLs containing raw ampersands.
By GenoProSupport - Saturday, January 27, 2007
If you want to encode all the characters in the URL, use Util.UrlEncode.  The ampersand (&) will be encoded as %26.