Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 578
  • Last Modified:

special characters in asp.net pages

We are using Ephox in a CMS. When we put in  a ® symbol or ®, © Ephox changes it to ®.
 This works fine when published out as a .html page, but published out as a .aspx page, the ®
becomes ®. This happens with single quotes and any special character.

Can asp.net server be configured to avoid this behavior, or can Ephox be configured to translate special characters as UTF encoding or HTML encoded? I can't get rid of Ephox to use FTKEditor which doesn't cause these problems.
1 Solution
I found this forum post which sounds to have a simliar issue with special characters.   This person got it working by adding responseEncoding="iso-8859-15" to the page directive at the top of aspx page.

asaworkerAuthor Commented:
We fxed this problem by changing the statndard web.config line to

<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"/>
 Because of the nature of Percussion CMS needing to preview pages in a non-.net environment, the UTF8 encoding was not being set by the Masterpage. By intercepting it in web.config we were able to get the characters to dispay correctly.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now