Question

I am using FCKeditor in rails app. Input:

™ © ® ¢ € ¥ £ ¤

Present Output (ISO-8859-1 Entities):

™ © ® ¢ € ¥ £ ¤

Expected output (Entity codes):

¿ ¡ « » § ¶ † ‡ • – —

Please someone help me to get the expected output.

Était-ce utile?

La solution

From the fine manual:

ProcessNumericEntities

This option tells the editor to transform all characters that are out of the ASCII table to their relative Unicode numeric entities.

For example, if this option is set to true, the Ϣ sign will be transformed to Ϣ. By default the option is set to false.

Example:

FCKConfig.ProcessNumericEntities = true ;

So you just need to figure out where your FCKEditor configuration file is and add FCKConfig.ProcessNumericEntities = true; to it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top