Gilles Simon
Gilles Simon

Reputation: 1

How to display Content ISO 8859-15 in utf8 CKEDITOR5

The content we load to ckeditor5 comes from a sql database which stores the data in iso 8859-15 encoding. The header of the page that display the text in ckeditor have content="text/html; charset=ISO-8859-15;" In this configuration, ckeditor5 does not display correctly certain characters (space ...) because utf8 ckeditor default encoding and ISO 8859-15 (SQL Content). I cannot change the encoding of SQL database and that I need to store the content in the sql base.

We use a isapi dll in IIS environment. The web service performs a data extraction from sql code. The data is stored in ISO 885915 format in the database. The result is transformed using xsl to build an HTML page. The content is prefilled in a div when building the html page. The header of the HTML page that display the text in ckeditor have content="text/html; charset=ISO-8859-15;" We use

<script src="../build/ckeditor.js"></script>
<script>ClassicEditor .create( document.querySelector( '.editor' ), { toolbar: {items: ['heading', ...

to configure the editor in the HTML

I need help, thanks !

Thanks

Upvotes: 0

Views: 413

Answers (0)

Related Questions