c# - HttpUtility.UrlEncode adding zero width space BOM -
string x = httputility.urlencode( "<div>u n i.</div>\r\nabc");
output : x = "%3cdiv%3eu+n+i.%3c%2fdiv%3e%0d%0a%e2%80%8babc"
as can see adding 0 width space %e2%80%8b.
is there way can encode string without adding byte order mark????
your input string contains zero-width space. c# allows unicode characters in many places. confirm deleting ">\r\na" in text editor , typing anew.
Comments
Post a Comment