More quoting problems [message #24169] |
Mon, 18 April 2005 15:59 |
krbvroc1
Messages: 31 Registered: February 2005
Karma: 0
|
Member |
|
|
I'm still having problems with articles that gateway from
the forum to nntp.
Previously, I patched email_msg_format.inc with
/* handle encoded e-mails */
if (strpos($data, '@') !== false) {
$data = str_replace('@', '@', $data);
}
However, I'm still seeing problems with other HTML chars.
People who use single quotes or double quotes in their msgs show up as 8217 or 8221
Do I need to add more if statments for each type of HTML char?
[Edit] - so far I've added similar if statements for
8217 - single quote
8221 - double quote
8211 - hyphen
Those were the ones I found from my news spool.
BTW, what are these code? When I googled for HTML special codes - I find different values. For example double quote is listed as
ampersand pound 34. http://webdesign.about.com/od/charactersets/l/bl_htmlcodes.htm
[Updated on: Mon, 18 April 2005 16:24] Report message to a moderator
|
|
|
|
|
Re: More quoting problems [message #24175 is a reply to message #24173] |
Mon, 18 April 2005 20:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You got the correct patch #, the actual conversion is done by php function inside plain_text()
FUDforum Core Developer
|
|
|