View Full Version : Ext.form.HtmlEditor special characters

13 Mar 2011, 5:47 AM
I have a FormPanel that consists of several TextFields, an HtmlEditor and several file upload fields. When I try to submit the form with a euro sign () or any other "special" character in the HtmlEditor doesnt post it correctly to the server.

The strange thing is: when I submit the form with a euro sign in one of the TextFields, it gets uploaded correctly, so it's not a problem of the character encoding in the document or the server.

I have tried some possible solutions: setting the character encoding to utf-8 throughout the application (serverside as well as client side) and overriding the HtmlEditor to set a metatag <meta charset="UTF-8"> in the header of the document of the hidden iframe. But I'm kind of stuck here.

I cannot find anything on the forums about this problem, but I cannot imagine that nobody has ran into this problem.

13 Mar 2011, 7:26 AM
There's an extension from Shea Frederick (VinylFox).
See http://code.google.com/p/ext-ux-htmleditor-plugins/source/browse/trunk/src/Ext.ux.form.HtmlEditor.SpecialCharacters.js
and plugins from the same author: here (http://www.vinylfox.com/plugin-set-for-htmleditor-gets-a-charactermap/) and here (http://www.sencha.com/forum/showthread.php?72106).

13 Mar 2011, 11:12 AM
Thank you for the reply. It is certainly a nice ux, that provides a user with a way to enter special characters. Nevertheless I find it a bit strange that HtmlEditor breaks the character encoding.