Input Not UTF-8 Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sasikumar
Forum Newbie
Posts: 2
Joined: Wed May 19, 2004 6:31 am

Input Not UTF-8 Problem

Post by sasikumar »

Hi,

I'm getting the warning message as,

Warning: dumpmem(): xmlEncodeEntitiesReentrant : input not UTF-8.

I had tested the code in the development server it works fine but in live server it showed me the error.

Is there's any solution to avoid this error.

I had used the, the following code for building the TAG.



PHP:--------------------------------------------------------------------------------
<?

$resulttag->new_child("teachnote",
htmlspecialchars($this->mrs->fields['vchTResTeachNote']));

$resulttag->new_child("qdesc",
htmlspecialchars($this->mrs->fields['vchQAQuesDesc']));

$resulttag->new_child("qtype",
htmlspecialchars($this->mrs->fields['vchQAQuesType']));

PHP:--------------------------------------------------------------------------------
?>

Waiting for reply.
sasikumar
Forum Newbie
Posts: 2
Joined: Wed May 19, 2004 6:31 am

Post by sasikumar »

I had solved the UTF-8 problem. We should not convert the entered text while displaying from the database.

Regards
Sasikumar
Post Reply