Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top