469,641 Members | 1,116 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Accents and HtmlEncode

Hi.

I am having problems to use HtmlEncode with strings that use accents. My
page uses some expressions like that:

<%# Server.HtmlEncode(DataBinder.Eval(Container.DataIt em, "Name").Trim)
%>

If the 'Name' has no accents all works well. But if the 'Name ' has
accents they appear encoded, like N&#227.

How can I solve this? I need to correctly display the accented
characters, but wants to use HtmlEncode to help me prevent problems with
malicious/erroneous data.

Regards,
Chris Leffer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
0 1504

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by chepiok | last post: by
2 posts views Thread by c w | last post: by
reply views Thread by Wim Roffal | last post: by
2 posts views Thread by Ghislain Benrais | last post: by
3 posts views Thread by Michael Gaillez | last post: by
4 posts views Thread by Andy Fish | last post: by
3 posts views Thread by David Lozzi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.