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

[Solved] Templates and character encoding

2 Answers 326 Views
Editor
This is a migrated thread and some comments may be shown as answers.
garfield
Top achievements
Rank 1
garfield asked on 12 Feb 2008, 11:16 AM

When I load a template into rad Editor using template manager there are problems with unicode characters, as they are not imported correctly.

Form example, in my template I have the following text:

- ATENCIÓN RECORDAR CAMBIAR EL LINK

If I cut and paste this text into the editor either on the desing mode or the html mode, the text remains the same.

But if I import a template with this text using the template manager I get the following text

- ATENCI�N RECORDAR CAMBIAR EL LINK

I haven't tried other special characters such as € $ %, etc...

What should I do about that?

Thank you

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Feb 2008, 04:03 PM
Hi Garfield,

Does your template file saved with the proper Unicode(UTF-8 with signature) encoding as it is shown in the attached screenshot?

Does the content of the file look properly if you load the file directly in the browser (without the editor on the page)?

If you still experience any problems, please open a support ticket and send your template file. I will test it and try to provide a solution soon.


All the best,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
garfield
Top achievements
Rank 1
answered on 14 Feb 2008, 07:15 PM

Here I post the working answer received by Rumen

Hi Marc,
I think that the problem is most likely related to that you have set in your web.config file the requestEncoding and responseEncoding globalization attributes to values different from utf-8. To fix the problemset both attributes to utf-8 as it is shown below and test again your HTML file:

<globalization requestEncoding="utf-8"   
responseEncoding="utf-8"   
fileEncoding=""   
culture=""   
uiCulture=""   
enableClientBasedCulture="false"   
responseHeaderEncoding="utf-8"   
resourceProviderFactoryType=""   
enableBestFitResponseEncoding="false" /> 


Thanks Rumen!!


Tags
Editor
Asked by
garfield
Top achievements
Rank 1
Answers by
Rumen
Telerik team
garfield
Top achievements
Rank 1
Share this question
or