I would like to transform a string like this
"¿Cómo puede hacerse esto?"
Into something that can be used within an XML resx file like this:
"¿Cómo puede hacerse esto?"
I have tried HttpUtility.UrlEncode
and WebUtility.HtmlEncode
without any success. I have searched online and can't seem to find the right solution.
I think I may need to put the string into a character array and iterate through each character and work out which one needs to be transformed.
Can anyone help me please?