You are not logged in.

#1 2005-05-08 22:56:25

joejac
Member
Registered: 2005-04-17
Posts: 5

Special character issue: ñ (ñ)

TinyMCE change the spanish character ñ for the following set of characters:  ñ

I try to change this at HTML code but the editor changes it back to ñ  this is frustrating. If I have the HTML button it suppose to respect what I enter at HTML level. There are a lot of words in spanish that use ñ like child (niño).

When some body search the site for child or children (niño niños) MySQL fails to find those pages. Can any body help me to find a viable solution.

TinyMCE is great, but when I try to change things in HTML some times it do not allow the changes, like in this case.

I appreciate a lot your help
Regards
joejac

Offline

 

#2 2005-05-08 23:21:55

Neirda
Member
From: France
Registered: 2005-04-17
Posts: 36

Re: Special character issue: ñ (ñ)

Hi,
I think that is normal that special characters are writen in html with its entity, this allows people not having strange characters on their screens.
Anywway, you can change this by modifying tiny_mce.js on the line which defines the entities parameters, the only thing to do is to delete the unwanted entities (209 and 241 for Ñ and ñ)

Cheers,
Neirda.

Offline

 

#3 2005-05-09 07:23:06

Afraithe
Administrator
From: Skellefteå, Sweden
Registered: 2005-01-03
Posts: 1930
Website

Re: Special character issue: ñ (ñ)

Yes this is actually correct HTML.

My recommendation would be to use the PHP function...

Code:

string htmlentities ( string string [, int quote_style [, string charset]] )

... on the search string as well.


Afraithe
TinyMCE Developer
Moxiecode Systems

Offline

 

#4 2005-05-12 01:08:25

joejac
Member
Registered: 2005-04-17
Posts: 5

Re: Special character issue: ñ (ñ)

I deleted from the big file tiny_mce.js:

209,Ntilde,

and also deleted:

241,ntilde,

And same problem when I type ñ or Ñ I see in the HTML created by the editor: ñ  and  Ñ

Am I doing something wrong? I am not a programmer, so I appreciate a lot your help. I deleted all the Explorer temporary files.
Thanks
joejac

Offline

 

#5 2005-05-12 13:48:14

joejac
Member
Registered: 2005-04-17
Posts: 5

Re: Special character issue: ñ (ñ)

Hello every body, I found the solution:

TinyMCE also has another file called: tiny_mce_src.js that also has all the special characters, so if there is a need to eliminate some special characters, it has to be done on both files: tiny_mce.js  and tiny_mce_src.js

Best regards
joejac

Offline

 

#6 2005-05-12 14:56:55

Afraithe
Administrator
From: Skellefteå, Sweden
Registered: 2005-01-03
Posts: 1930
Website

Re: Special character issue: ñ (ñ)

tiny_mce.js is the file thats in use, tiny_mce_src.js is identical to tiny_mce.js except tiny_mce.js is compressed to save space.


Afraithe
TinyMCE Developer
Moxiecode Systems

Offline

 

#7 2005-05-12 15:15:48

manchicken
Member
From: Chicago, IL
Registered: 2005-04-13
Posts: 64
Website

Re: Special character issue: ñ (ñ)

Um... this *IS* possible to change outside modifying the core scripts.  RTFM people.  It's there to help you.


~ Man-Chicken <><

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB