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

Accents and HtmlEncode

P: n/a

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.

Chris Leffer

*** Sent via Developersdex ***
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.