I had a functional moodle 1.5 chat, i download the latest version and upgraded it into the working moodle to crash it !! the error is :
<meta http-equiv="content-type" content="text/html; charset=
Fatal error: Call to undefined function: current_charset() in /public_html/moodle/mod/chat/gui_header_js/index.php on line 65