Japanese rich text not pasting correctly

4 posts, 0 answers
  1. majsty
    majsty avatar
    9 posts
    Member since:
    Jul 2007

    Posted 21 Jul 2010 Link to this post

    If I copy "日本語" from a rich text editor (e.g. Character Map, Wordpad) and paste it into a RadEditor, the following is pasted instead:

    Z

    If I paste it into a plain text editor (e.g. Notepad), re-copy, and paste into a RadEditor, it pastes correctly. I have observed this under XP and Vista IE7, and Win7 IE8. It works ok in Firefox and Safari. I used your demo page at http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx to confirm the issue.

  2. Rumen
    Admin
    Rumen avatar
    13149 posts

    Posted 26 Jul 2010 Link to this post

    Hi Majsty,

    RadEditor is powerful enough to be used in any language you like: English, Bulgarian, Serbian, Russian, Hindi, Vietnamese, Chinese, Japanese, Korean, etc, because its content area is a standard editable IFRAME element which uses the Rich Text Editing engine of the browser. This engine offers support for Japanese characters.

    You'll need to set the proper encoding in the aspx files with the editor. You can use the following encoding:
    <?xml version="1.0" encoding="utf-8" ?>, which will make the editor compatible with Western Europe languages, Cyrillic, Greek, Asian, Arab, Chinese, Japanese, etc characters.

    If the characters are displayed properly by the browser on the same page where the editor is, they should be displayed properly in the editor as well.

    I tried to reproduce the problem but without success. You can see my test at: http://screencast.com/t/NTk2YjhjYWI.

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. majsty
    majsty avatar
    9 posts
    Member since:
    Jul 2007

    Posted 26 Jul 2010 Link to this post

    Hi Rumen,

    Thanks for your reply - the video is a good idea. Here's a video of me reproducing the issue using your editor demo page under XP/IE7: http://www.screencast.com/t/MzdhODhkMT

    I doubt the issue is related to encoding, I suspect it's related to the way the data on the clipboard is converted to HTML.

    Hope this helps
  4. Rumen
    Admin
    Rumen avatar
    13149 posts

    Posted 27 Jul 2010 Link to this post

    Hi Majsty,

    I was able to reproduce the same behavior in a standard editable IFRAME element as well as in our competitors' editors. This is 100% encoding problem of WordPad due to how the content is converted from the clipboard to HTML by the Operating System and WordPad. For your convenience I have attached my test HTML having an editable IFRAME in it. You will be able to reproduce the problem in it.

    I tried to change the WordPad encoding to UTF-8 but without any success. If you are able to find a solution for this problem non related to RadEditor, I will award your with Telerik points, because it will be helpful for your fellow developers.

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top