designsimply
05-06-2005, 12:25 PM
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?
designsimply
05-06-2005, 01:00 PM
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;.
Charter
05-10-2005, 10:21 AM
The current $spec array is set as follows:
//----------HTML ENTITIES
$spec = array( "&" => "&",
"à" => "*",
"è" => "è",
"ù" => "ù",
"ó" => "ó",
"é" => "é",
"î" => "î",
"ô" => "ô",
"û" => "û",
"ê" => "ê",
"ç" => "ç",
"" => "oe",
">" => " ",
"<" => " ",
"°" => " ",
"&apos" => "'",
""" => " ",
"â" => "â",
"ï" => "ï",
"ë" => "ë",
"ä" => "ä",
"Ä" => "Ä",
"Ë" => "Ë",
"Ï" => "Ï",
"Ü" => "Ü",
"ö" => "ö",
"ü" => "ü",
" " => " ",
"ß" => "ß",
"í" => "*",
"®" => " ",
"©" => " ",
"á" => "á",
"Á" => "Á",
"ð" => "ð",
"Ð" => "Ð",
"É" => "É",
"Í" => "Í",
"Ó" => "Ó",
"ú" => "ú",
"Ú" => "Ú",
"Þ" => "Þ",
"þ" => "þ",
"Ö" => "Ö",
"æ" => "æ",
"&AELIG" => "Æ",
"å" => "å",
"Å" => "Å",
"ø" => "ø",
"Ø" => "Ø"
);
Try looking at it using a text only editor such as Notepad. The values on the right hand side are (extended) ASCII characters. There is a list of (extended) ASCII characters at www.asciitable.com.
vBulletin® v3.7.3, Copyright ©2000-2024, Jelsoft Enterprises Ltd.