Rich text field value <div> </div>
output <div>?</div>
DWT:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
@@Component.Fields.Text@@
</html>
what did i miss?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can’t try it out now due to lack of time, but a few things come to mind:
EDIT
In preview I get this:
After publishing I get the same as you:
So I changed my publication target to use “Unicode (UTF-8)” instead of “System Default”, and now when I publish I get this:
I then referred to Elena’s excellent 7 clues to deal with encoding, and figured out I was missing this on my web.config:
This still didn’t do it, it was still loading this weird character in between the tags. This last clue was because the encoding was not being applied to pages with the “.html” extension. Renamed my page template to have a .aspx extension, published, pressed F5 and magic, my div now shows:
EDIT 2 If you want to use the .html extension, just add this to your page’s <head>: