PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Encoding for character entitdy references like ™ (http://www.phpdig.net/forum/showthread.php?t=2000)

designsimply 05-06-2005 12:25 PM

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?

designsimply 05-06-2005 01:00 PM

HTML entities section of config.php
 
I found an HTML ENTITIES section in config.php, and in the $spec array, there are things like "&egrave" => "\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:
Code:

//----------HTML ENTITIES
$spec = array( "&amp" => "&",
              "&agrave" => "*",
              "&egrave" => "è",
              "&ugrave" => "ù",
              "ó" => "ó",
              "&eacute" => "é",
              "&icirc" => "î",
              "&ocirc" => "ô",
              "&ucirc" => "û",
              "&ecirc" => "ê",
              "&ccedil" => "ç",
              "&#156" => "oe",
              "&gt" => " ",
              "&lt" => " ",
              "&deg" => " ",
              "&apos" => "'",
              "&quot" => " ",
              "&acirc" => "â",
              "&iuml" => "ï",
              "&euml" => "ë",
              "&auml" => "ä",
              "&Auml" => "Ä",
              "&Euml" => "Ë",
              "&Iuml" => "Ï",
              "&Uuml" => "Ü",
              "&ouml" => "ö",
              "&uuml" => "ü",
              "&nbsp" => " ",
              "&szlig" => "ß",
              "&iacute" => "*",
              "&reg" => " ",
              "&copy" => " ",
              "&aacute" => "á",
              "&Aacute" => "Á",
              "&eth" => "ð",
              "&ETH" => "Ð",
              "&Eacute" => "É",
              "&Iacute" => "Í",
              "&Oacute" => "Ó",
              "&uacute" => "ú",
              "&Uacute" => "Ú",
              "&THORN" => "Þ",
              "&thorn" => "þ",
              "&Ouml" => "Ö",
              "&aelig" => "æ",
              "&AELIG" => "Æ",
              "&aring" => "å",
              "&Aring" => "Å",
              "&oslash" => "ø",
              "&Oslash" => "Ø"
              );

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.


All times are GMT -8. The time now is 11:58 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.