PDA

View Full Version : Special Characters


SpadMan
12-03-2005, 05:04 PM
I've created a standard link and the replacement text contains a standard entity reference (i.e. Small e, acute accent). I've tried each of the following in the replacement text field for the link but GAL doesn't appear to recognize them.

é
é
é

In fact, using the second value in the list above in the GAL replacement text field results in the following error when viewing posts.

Warning: preg_replace(): Unknown modifier '2' in /geek/gal/includes/gal_class_core.php on line 178

Any suggestions on making this work would be much appreciated.

The Geek
12-03-2005, 05:50 PM
hmmm. check the source text... does it use the second option? If so, try &\#233;

The # is a special regexp character.

Let me know (the others should work - Im assuming the editor is using é )

SpadMan
12-03-2005, 06:35 PM
:o Your were correct. I forgot to use the backslash. Problem solved. :)