Sorry, I should have mentioned I am using the ColdFusion version of the server side file. Now that you've pointed out the line to fix in the PHP version, I think the offending line in the CF version is line 61, where the HTMLEditFormat function is called. But I have no idea what to replace it with.
//AT 10/2004 replaces special characters function replaceSpecialChars(text) { text = text.replace(//g, "Ä"); text = text.replace(//g, "ä"); text = text.replace(//g, "Ü"); text = text.replace(//g, "ü"); text = text.replace(//g, "Ö"); text = text.replace(//g, "ö"); text = text.replace(//g, "ß"); //any other characters..... return text; }
Than modify the function "switchEditMode" as follows:
Add the line "txtSource.value = replaceSpecialChars(txtSource.value) ; //AT 10/2004 - replaces special characters"
after the line "txtSource.value = objContent.DOM.body.innerHTML ;"
This will show the special charcters in the "html-style" (ü) in the edit mode
Now you have to replace the else condition at the function "setFieldValue":
The new condition looks like this: else { //AT 10/2004 replaces special characters var temp = replaceSpecialChars(objContent.DOM.body.innerHTML) oLinkedField.value = temp; //oLinkedField.value = objContent.DOM.body.innerHTML ; }
Hope I found a good solution, maybe it's not a really tidy one, but it works.
RE: Problem with german characters - no fix yet?
Replace htmlentities( ) with htmlspecialchars() in fckeditor.php (line ~44):
//$grstr = htmlentities( $this->Value ) ;
$grstr = htmlspecialchars( $this->Value ) ;
RE: Problem with german characters - no fix yet?
Thanks,
-Ryan
RE: Problem with german characters - no fix yet?
RE: Problem with german characters - no fix yet?
RE: Problem with german characters - no fix yet?
http://www.macromedia.com/devnet/mx/col ... alize.html
RE: Problem with german characters - no fix yet?
I never seen any way to fix these problem
I hope we will find...
good luck
Thibaut
RE: Problem with german characters - no fix yet?
You have to change the file "fck_editor.js".
First of all insert the following function:
//AT 10/2004 replaces special characters
function replaceSpecialChars(text)
{
text = text.replace(//g, "Ä");
text = text.replace(//g, "ä");
text = text.replace(//g, "Ü");
text = text.replace(//g, "ü");
text = text.replace(//g, "Ö");
text = text.replace(//g, "ö");
text = text.replace(//g, "ß");
//any other characters.....
return text;
}
Than modify the function "switchEditMode" as follows:
Add the line "txtSource.value = replaceSpecialChars(txtSource.value) ; //AT 10/2004 - replaces special characters"
after the line "txtSource.value = objContent.DOM.body.innerHTML ;"
This will show the special charcters in the "html-style" (ü) in the edit mode
Now you have to replace the else condition at the function "setFieldValue":
The new condition looks like this:
else
{
//AT 10/2004 replaces special characters
var temp = replaceSpecialChars(objContent.DOM.body.innerHTML)
oLinkedField.value = temp;
//oLinkedField.value = objContent.DOM.body.innerHTML ;
}
Hope I found a good solution, maybe it's not a really tidy one, but it works.
Grsse aus Ravensburg (Germany)