By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,010 Members | 2,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,010 IT Pros & Developers. It's quick & easy.

Accents and HtmlEncode

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.