|
05-06-2005, 01:25 PM | #1 |
Green Mole
Join Date: May 2005
Posts: 3
|
Encoding for character entitdy references like ™
I am running PhpDig 1.8.7. My PHPDIG_ENCODING var is set correctly to match the files on my site, but PhpDig is converting things like ™ to ™. It looks like it is trying to turn & into & even if it is part of another character entity reference. How can I fix this?
|
05-06-2005, 02:00 PM | #2 |
Green Mole
Join Date: May 2005
Posts: 3
|
HTML entities section of config.php
I found an HTML ENTITIES section in config.php, and in the $spec array, there are things like "è" => "\350". What is the \350 and how do I look it up for other characters such as the greek lowercase beta, & #946;, and the trademark symbol, & #8482; or & trade;.
|
05-10-2005, 11:21 AM | #3 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
The current $spec array is set as follows:
Code:
//----------HTML ENTITIES $spec = array( "&" => "&", "à" => "*", "è" => "è", "ù" => "ù", "ó" => "ó", "é" => "é", "î" => "î", "ô" => "ô", "û" => "û", "ê" => "ê", "ç" => "ç", "œ" => "oe", ">" => " ", "<" => " ", "°" => " ", "&apos" => "'", """ => " ", "â" => "â", "ï" => "ï", "ë" => "ë", "ä" => "ä", "Ä" => "Ä", "Ë" => "Ë", "Ï" => "Ï", "Ü" => "Ü", "ö" => "ö", "ü" => "ü", " " => " ", "ß" => "ß", "í" => "*", "®" => " ", "©" => " ", "á" => "á", "Á" => "Á", "ð" => "ð", "Ð" => "Ð", "É" => "É", "Í" => "Í", "Ó" => "Ó", "ú" => "ú", "Ú" => "Ú", "Þ" => "Þ", "þ" => "þ", "Ö" => "Ö", "æ" => "æ", "&AELIG" => "Æ", "å" => "å", "Å" => "Å", "ø" => "ø", "Ø" => "Ø" );
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Index only XXX character... | PL_90 | How-to Forum | 0 | 10-05-2007 12:28 PM |
Plus character(+) converted to (%20) in urls | raymerica | Troubleshooting | 2 | 05-31-2006 01:19 PM |
Is this a character encoding problem ? | casimiro | Troubleshooting | 0 | 12-22-2005 08:39 AM |
Cyrillic character in the URL !? | wertas | Troubleshooting | 1 | 02-16-2004 02:09 PM |
How To Index One-Character Words | vinyl-junkie | How-to Forum | 2 | 01-19-2004 12:08 PM |