Editor adding characters 

Thread is closed for posting
9 posts, 1 answers
  1. Glyn
    Glyn avatar
    9 posts
    Member since:
    Jul 2013

    Posted 31 Jul 2013 Link to this post

    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?
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 01 Aug 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Glyn
    Glyn avatar
    9 posts
    Member since:
    Jul 2013

    Posted 02 Aug 2013 Link to this post

    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
  5. Answer
    Glyn
    Glyn avatar
    9 posts
    Member since:
    Jul 2013

    Posted 02 Aug 2013 Link to this post

    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

  6. Waldemar
    Waldemar avatar
    1 posts
    Member since:
    Nov 2012

    Posted 06 Aug 2013 Link to this post

    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?
  7. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 06 Aug 2013 Link to this post

    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!
  8. Michael
    Michael avatar
    3 posts
    Member since:
    Sep 2014

    Posted 17 Oct 2014 Link to this post

    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
  9. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 17 Oct 2014 Link to this post

    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!
     
  10. PeterS
    PeterS avatar
    5 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2014 Link to this post

    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
Back to Top
Kendo UI is VS 2017 Ready