Observe the following:
WebUtility.HtmlDecode("\u003d")
Outputs "="
WebUtility.HtmlEncode("=")
Outputs "="
I want to encode a string which contains equal signs, but the sign is not being coded. I don't want to write this functionality myself as I don't yet know all the character cases I have to write for.
Can anyone answer why the HtmlEncode and Decode function seems to not be two-way in this case, and if there is a function I should be using for encoding = to /u003d