c# - HttpUtility.UrlEncode adding zero width space BOM -


string x = httputility.urlencode( "<div>u n i.</div>\r\n​abc"); 

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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -