A
AZNewsh
I am storing HTML in an oracle database, this is loaded from a textbox
in a webpage, I convert ' to ' ' using the code below:
foo.Replace("'", "''").Replace("&", "'||'&'||'")
this works just fine, then when I retrieve the text from the database
and display it in a webpage, I convert it back using:
objdr.Item("foo").Replace("''", "'").Replace("'||'&'||'", "&")
For some reason this then ends up converting ' ' not to ' but to an
upside down question mark ¿, not sure of the correct terminology for
that.
Any thoughts on why it is doing this and how to prevent it?
Thanks in advance
in a webpage, I convert ' to ' ' using the code below:
foo.Replace("'", "''").Replace("&", "'||'&'||'")
this works just fine, then when I retrieve the text from the database
and display it in a webpage, I convert it back using:
objdr.Item("foo").Replace("''", "'").Replace("'||'&'||'", "&")
For some reason this then ends up converting ' ' not to ' but to an
upside down question mark ¿, not sure of the correct terminology for
that.
Any thoughts on why it is doing this and how to prevent it?
Thanks in advance