note 35936 deleted from function.htmlentities by cece
| From: | cece@php.net | Date: | Sun, 14 Nov 2004 13:35:10 +0000 |
| Subject: | note 35936 deleted from function.htmlentities by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80503@lists.php.net to get a copy of this message | ||
Note Submitter: dmurphy at telegeography dot com
----
// this is the macroman conversion table for the custom_htmlentities() function
$macroman_table = array(
//Below character 128 ASCII.
//The only characters
"34"=>""", "38"=>"&",
"60"=>"<", "62"=>">",
// Replace the verticle tab with a xhtml line break.
// Many Mac database apps (FileMaker) use the verticle tab within a field to break lines
// Replace 11 after 60 & 62 -- we want to keep the "<" & ">"
characters in the output
"11"=>"<br />",
// all chars above 128 get html entitiles where available
"128"=>"Ä", "129"=>"Å",
"130"=>"Ç", "131"=>"É",
"132"=>"Ñ", "133"=>"Ö",
"134"=>"Ü", "135"=>"á",
"136"=>"à", "137"=>"â",
"138"=>"ä", "139"=>"ã",
"140"=>"å", "141"=>"ç",
"142"=>"é", "143"=>"è",
"144"=>"ê", "145"=>"ë",
"146"=>"í", "147"=>"ì",
"148"=>"î", "149"=>"ï",
"150"=>"ñ", "151"=>"ó",
"152"=>"ò", "153"=>"ô",
"154"=>"ö", "155"=>"õ",
"156"=>"ú", "157"=>"ù",
"158"=>"û", "159"=>"ü",
"160"=>"†", "161"=>"°",
"162"=>"¢", "163"=>"£",
"164"=>"§", "165"=>"•",
"166"=>"¶", "167"=>"ß",
"168"=>"®", "169"=>"©",
"170"=>"™", "171"=>"´",
"172"=>"¨", "173"=>"≠",
"174"=>"Æ", "175"=>"Ø",
"176"=>"∞", "177"=>"±",
"178"=>"≤", "179"=>"≥",
"180"=>"¥", "181"=>"µ",
"182"=>"∂", "183"=>"∑",
"184"=>"∏", "185"=>"π",
"186"=>"∫", "187"=>"ª",
"188"=>"º", "189"=>"Ω",
"190"=>"æ", "191"=>"ø",
"192"=>"¿", "193"=>"¡",
"194"=>"¬", "195"=>"√",
"196"=>"ƒ", "197"=>"≈",
"198"=>"∆", "199"=>"«",
"200"=>"»", "201"=>"…",
"202"=>" ", "203"=>"À",
"204"=>"Ã", "205"=>"Õ",
"206"=>"Œ", "207"=>"œ",
"208"=>"–", "209"=>"—",
"210"=>"“", "211"=>"”",
"212"=>"‘", "213"=>"’",
"214"=>"÷", "215"=>"◊",
"216"=>"ÿ", "217"=>"Ÿ",
"218"=>"⁄", "219"=>"¤",
"219"=>"€", "220"=>"‹",
"221"=>"›", "222"=>"fi",
"223"=>"fl",
"224"=>"‡", "225"=>"·",
"226"=>"‚", "227"=>"„",
"228"=>"‰", "229"=>"Â",
"230"=>"Ê", "231"=>"Á",
"232"=>"Ë", "233"=>"È",
"234"=>"Í", "235"=>"Î",
"236"=>"Ï", "237"=>"Ì",
"238"=>"Ó", "239"=>"Ô",
"240"=>"", // apple symbol, nothing to replace it with
"241"=>"Ò", "242"=>"Ú",
"243"=>"Û", "244"=>"Ù",
"245"=>"ı", "246"=>"ˆ",
"247"=>"˜",
"248"=>"¯", "249"=>"˘",
"250"=>"˙", "251"=>"˚",
"252"=>"¸", "253"=>"˝",
"254"=>"˛", "255"=>"ˇ"
);