This is a migrated thread and some comments may be shown as answers.

Editor adding characters 

8 Answers 566 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Glyn
Top achievements
Rank 1
Glyn asked on 31 Jul 2013, 12:45 PM
Hi guys,
I'm evaluating your web widgets for our company and I have noticed some weirdness when using the Kendo UI Web Editor.

If you click somewhere in the document but do not highlight text, then click the insert link or underline buttons, the editor adds the following characters:
     or    ï»¿ï»¿  in html.

This also happens on your demos that come with the trial download, but not your website live demos.
I have tested this on IE10, Chrome and Firefox 22

I've tried setting the UTF-8 encoding on the scripts and html page but that doesn't help.

Any ideas?

8 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 01 Aug 2013, 11:03 AM
Hello Glyn,

Indeed, this is a peculiar bug. The offline demos have been saved in a different encoding, so the UTF BOM gets visible when using the editor. The online demos are served with the proper content-type, so they are fine. You can resolve this in the offline demos by specifying the following meta tag:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

(note that there are subtle differences and specifying <meta charset="utf-8"> won't work)

In any case, this problem does not appear when the encoding is correctly set, so it shouldn't hinder your evaluation.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Glyn
Top achievements
Rank 1
answered on 02 Aug 2013, 08:51 AM
Hi Alex,

Thanks for the reply, I tried that and it doesn't seem to help.
I actually cut and pasted from your example into my html document which has the editor on it.
Also tried specifying the charset in the script statements as well.

Is it that the download evaluation copy is different to the current release?

As long as the actual editor on the full version doesn't do it I'm sure it will be fine.

With thanks
Glyn
0
Accepted
Glyn
Top achievements
Rank 1
answered on 02 Aug 2013, 01:35 PM
Hi Alex,

Good news! I found out what was causing it.
I bought and installed Kendo UI Web and it was still doing it.
Even though I had the <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> line in the header.

Seems that IIS 7 had at some point created a web.config file which was overruling my code.
Just thought I'd post my findings for others.

With thanks

Glyn

0
Waldemar
Top achievements
Rank 1
answered on 06 Aug 2013, 08:04 AM
Hi Alex,

I have the same problem with the editor adding the characters. The previous version of the editor was working fine for me. When I use the utf-8 encoding it's working fine. But the application uses the ISO-8859-1 encoding and I can't change this. Is there a possibility to let the editor work with other encoding then utf-8 without having the issues with the strange characters?
0
Alex Gyoshev
Telerik team
answered on 06 Aug 2013, 12:19 PM
Hello Waldemar,

You can set the charset attribute of the script tag:

    <script src="js/kendo.all.js" charset="utf-8"></script>

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 17 Oct 2014, 09:37 AM
I'm getting this error too, but only when clicking an options (e.g. bold) without highlighting something. I have checked the encoding is UTF-8. Any other ideas? Thanks
0
Alex Gyoshev
Telerik team
answered on 17 Oct 2014, 11:39 AM
Hello Michael,

The way to debug this problem has been described in the editor troubleshooting help topic.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Pablo
Top achievements
Rank 1
answered on 19 Nov 2014, 09:51 PM
Hello,

I'm getting this error using the AngularJS version of the editor. I have this problem only on IE (version 10). My page first loads, and then via JSON I load the editor contents. When I press enter in the text, I get the ï»¿ characters. I tried adding UTF-8 to the HTTP header when I send the JSON message, but the problem persists. Is there anything else I'm missing?

Thanks
Pablo
Tags
Editor
Asked by
Glyn
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Glyn
Top achievements
Rank 1
Waldemar
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Pablo
Top achievements
Rank 1
Share this question
or