CKEditor, Unicode and HTML entities – Willkommen in der Christlichen Blogger Community

HURRAAA!!!! WIR SIND UMGEZOGEN!!!! * BESUCHE UNSERE NEUE SEITE! »

CKEditor, Unicode and HTML entities

By Chrblocom / 15. November 2013

By De Benny

picture showing html entities instead of Hebrew unicode letters

There are times when you are looking for a solution of a problem and nothing seems to help… until you realize that you missed something very stupid.

This happened to me today: I’m playing around a bit with ckeditor and of course, I wanted it to play nice with languages like Hebrew and Greek (for those wondering: I study Theology).

So I tried to have some Hebrew letters as initial values, and what I got looked like this:

This does not look very Hebrew

When I clicked on “Quellcode” which is German for “source code” I saw what I learned is called html entities, 4 or 5 character sets that all started with &. So the Hebrew I entered in the source file as initial value got lost and “translated” into those html entities. I asked google and came to settings like

config.entities = false;

and

config.htmlEncodeOutput = false;

but they didn’t change a thing. But the solution was rather simple as you can see here:

One should use the propper encoding to start with

Things bettered a lot after correcting this:

picture showing uft-8 checked as encoding and the correct Hebrew text appearing in the text field

Once uft-8 was chosen, the Hebrew text appeared

All of a sudden, the Hebrew text was actually Hebrew and readable. Stupid mistake, took a bit to find out. So if ever you run into a similar situation, be sure to tell your website which encoding you use like so:

and be sure to set the encoding accordingly if you do not use utf-8 like I did.




Share 'CKEditor, Unicode and HTML entities' on COSMiQ







Share 'CKEditor, Unicode and HTML entities' on LinkedIn
Share 'CKEditor, Unicode and HTML entities' on meinVZ
Share 'CKEditor, Unicode and HTML entities' on MySpace
Share 'CKEditor, Unicode and HTML entities' on Pinterest
Share 'CKEditor, Unicode and HTML entities' on Posterous
Share 'CKEditor, Unicode and HTML entities' on reddit
Share 'CKEditor, Unicode and HTML entities' on Scoop.it
Share 'CKEditor, Unicode and HTML entities' on Soup.io
Share 'CKEditor, Unicode and HTML entities' on studiVZ
Share 'CKEditor, Unicode and HTML entities' on Tumblr
Share 'CKEditor, Unicode and HTML entities' on Twitter
Share 'CKEditor, Unicode and HTML entities' on WordPress
Share 'CKEditor, Unicode and HTML entities' on XING
Share 'CKEditor, Unicode and HTML entities' on Email
Share 'CKEditor, Unicode and HTML entities' on Gmail
Share 'CKEditor, Unicode and HTML entities' on Google Translate
Share 'CKEditor, Unicode and HTML entities' on HootSuite

Hier zum Blog des Autors

From: De Benny

About the author

Chrblocom

Click here to add a comment

Leave a comment: