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

[Solved] Rad Editor Chinese text showing up as ????

1 Answer 139 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Saad
Top achievements
Rank 1
Saad asked on 13 Apr 2009, 09:12 PM

Using RAD EDITOR (RadControls_Q2_2007_SP1_dev):

When I paste this text into my rad editor:
目睹了中国在全球市场的日趋重要的地位,我们也通过协助美国企业建立和扩展在中国的业务紧紧地跟进这一进程。如今,通过与中国顶级律所及其知识产权公司结成战略联盟,Bullivant具备了更好地协助中国商业企业开拓美国市场的实力。

It displays the chinese text fine within my rad editor window after pasting. However when the content gets written out to SQL:

When I save the content to the SQL database, and retrieve the content, it becomes:
??????????????????????????????????????????????????????????????????...

I am using IIS/ASP.net 1.1
My web.config file begins with:
<?xml version="1.0" encoding="utf-8" ?>

I have made the following change to my web.config file:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"

 

 

 

responseHeaderEncoding="utf-8" enableBestFitResponseEncoding="false" />

 

 

 

I also set the following tags on my page which has the rad editor in use or inputting the field:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
and
<head>
...
<meta http-equiv="content-type" content="text/html; charset=utf-8">
...
</head>

The database column bieng used to store the rad editor value is of type NTEXT.

Please let me know how I can solve this problem.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Apr 2009, 11:13 AM
Hi Saad,

All is fine - your application uses UTF 8, your DB uses NTEXT. There is no reason for this to happen, but problem cannot be in the editor itself as it does not process the content in any way.

Our suggestion is to do a quick test and replace the editor with a standard <asp:TextBox> control - if the problem persists, it is not related to the editor and you will need to examine your application more carefully.

In case you are not able to reproduce the problem with a textbox control then please open a support ticket and send us working project.  We will fit it for you.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Saad
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or