PDA

View Full Version : character display problem


jdleung
04-16-2007, 03:09 AM
Chinese name cannot be displayed normally in admin comment page. but the message is ok.

found two lines in admin/comments.php

$message = pullout($row['message']);
$name = htmlentities(pullout($row['name']));

can use htmlspecialchars() instead? and why doesn't $message need too?

Trauko
04-16-2007, 12:56 PM
Chinese name cannot be displayed normally in admin comment page. but the message is ok.

found two lines in admin/comments.php

$message = pullout($row['message']);
$name = htmlentities(pullout($row['name']));

can use htmlspecialchars() instead? and why doesn't $message need too?

http://forum.pixelpost.org/showpost.php?p=44686&postcount=10

In PP 1.6 final edit line 243

delete htmlentities

$name = pullout($row['name']);

jdleung
04-16-2007, 05:37 PM
Thanks, Trauko.

I solved this using htmlspecialchars(), and I just wanna know why not to use this function? or if it's a bug add htmlentities() to $name but doesn't add to $message?