Solved

fckeditor problem: can't recognize french character é

Posted on 2006-11-20
5
364 Views
Last Modified: 2008-02-01
Hi, I am using fckeditor to replace the textarea in my application. I also has a spell checking software (from another source) connected with it. However, I found the fckeditor has some problem when spell checking french character é. For example, I put french word " Résistance " in the fckeditor, and

My code is like:

function setContent(myTextarea)
{
var oEditor = FCKeditorAPI.GetInstance(myTextarea);

document.getElementsByName(myTextarea)[0].value= oEditor.GetXHTML(true);

confirm(document.getElementsByName(myTextarea)[0].value);
}

The output by confirm(document.getElementsByName(myTextarea)[0].value) will be

"Résistance"

It looks like every é will be interpreted as "é"

So what's wrong? Thanks
0
Comment
Question by:ly_uwo
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
maisonlaprise earned 500 total points
ID: 17982549
The &eacute is the html entitie for é. There is one for every special character. For example è would be &egrave, à would be &agrave.

If you were working in PHP , all you had to do is use the html_entities_decode() function to transform the &eacute into 'é'.

I don't really know how to solve your problem though.
0
 

Author Comment

by:ly_uwo
ID: 17982577
I am using jsp with javascript, so any specific functions for that?
0
 
LVL 2

Expert Comment

by:maisonlaprise
ID: 17982777
Another solution is to change the character set used in your webpage :

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

The UTF-8 charset contains about every character possible.
0
 

Author Comment

by:ly_uwo
ID: 17983017
Sorry it won't work. I think it is because of the fckeditor problem. My html page can show those french special characters fine. However, in the content of textarea, if using fckeditor, the problem appears. In fact the outlook of the textarea is good, just when you try to spell check the content, it won't give you the right result. That's why I use javascript confirm funciton to output the value and see that the spell checker is trying to check "R&eacute;sistance", not Résistance
0
 

Author Comment

by:ly_uwo
ID: 17988454
though I found solution in another panel. you still give me some idea. thanks
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is sending authentication through SOAP secure? 3 32
WordPress 8 52
Drop Down not working in mobile- Bootstrap 14 29
MediaWiki - Move a site 4 29
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question