Disable TinyMCE HTML Encode in BlogEngine.Net

 - 16 October 2009 09:09 Admin

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",


 


Paylaş

Tags:

BlogEngine.NET

Comments (3) -

11/20/2010 8:05:17 PM #

Magang Jepang

I was just thinking about disable TinyMCE encode in BE and you've really helped out. Thanks!

Magang Jepang Indonesia | Reply

5/20/2012 11:30:13 PM #

essay

I am setting up my blog and I was actually wondering about the special characters. I am new to this so I was not sure if disabling tinyMCE HTML is a great idea. Now, that you discussed the matter, I could finally proceed in setting up my blog. Thanks a lot!

essay United Kingdom | Reply

5/29/2012 1:55:37 AM #

essay

I am actually thinking about how effective it would be to disable TinyMCE HTML but I am not sure. However, now that you discussed it, I am pretty sure that I will be on the right track.

essay United Kingdom | Reply

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About the author

Mustafa OZCAN Mustafa ÖZCAN
Senior Software Developer

E-mail me Send mail

PayPal Donate


Recent comments

Comment RSS

Calendar

<<  May 2013  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

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 6487
   

Online : 9