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

Japanese rich text not pasting correctly

3 Answers 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
majsty
Top achievements
Rank 1
majsty asked on 22 Jul 2010, 04:41 AM

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.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jul 2010, 04:34 PM
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
0
majsty
Top achievements
Rank 1
answered on 27 Jul 2010, 12:11 AM
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
0
Rumen
Telerik team
answered on 27 Jul 2010, 03:28 PM
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
Tags
Editor
Asked by
majsty
Top achievements
Rank 1
Answers by
Rumen
Telerik team
majsty
Top achievements
Rank 1
Share this question
or