// this renders õ correctly
myLabelTextBox.Text = myBusinessObject.DatabaseColumnValue;
// But my code is like this
// This converts my õ into õ
myLabelTextBox.Text = Server.HtmlEncode( myBusinessObject.DatabaseColumnValue );
According to the MSDN Documentation for Server.HtmlEncode,
the method encodes with the following rules. (Note: DBCS means Double Byte Character Set)
But I really NEED to use Server.HtmlEncode( myString ).
Is there a way still how to make õ renders as it is?
soelinn
Member
102 Points
36 Posts
Re: õ vs õ ( Character Encoding + Server.HtmlEncode problem)
Apr 10, 2007 04:28 PM|LINK
The cause of the problem is this.
According to the MSDN Documentation for Server.HtmlEncode,
the method encodes with the following rules. (Note: DBCS means Double Byte Character Set)
But I really NEED to use Server.HtmlEncode( myString ).
Is there a way still how to make õ renders as it is?
Thanks,
Soe