PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 05-06-2005, 01:25 PM   #1
designsimply
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?
designsimply is offline   Reply With Quote
Old 05-06-2005, 02:00 PM   #2
designsimply
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 "&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;.
designsimply is offline   Reply With Quote
Old 05-10-2005, 11:21 AM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
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.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 03:13 AM.


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