Disable TinyMCE HTML Encode in BlogEngine.Net

 - 16 October 2009 16:09 Mustafa ÖZCAN

If you are using BlogEngine.Net for your blog some special characters are saved with encoded in posts or pages.


For example, the letter "ü" encoded to "ü". If your site's charset is UTF-8 chars are displayed correctly. However, If you are export to XML with UTF-8 format your posts showing unreadable in sites coded with ISO-8859-9 format.
 
 
To prevent this,  to make a change in TinyMCE editor (BlogEngine.Net's default editor).

Open tinyMCE.ascx file in Admin folder.

Find convert_urls: false,  line in tinyMCE.init() function.

After this line You must add

entities: "",


Then, the special chars saved without encoded.

 

Updated (26.11.2009) :

Formatted sample codes is showing not correctly when is setting entities="",

So you must use like this

entities:"160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",


 

Bookmark&Share

Tags:

BlogEngine.NET

Comments are closed

About the author

Mustafa OZCAN Mustafa ÖZCAN
Software Developer

E-mail me Send mail

Recent comments

Comment RSS

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008

Added Files

File Hit
jquery-1.2.6-intellisense.js 3446