Quantcast
Channel: Comments on: Chat2: Group Chat Room with PHP, jQuery, and a Text File
Viewing all articles
Browse latest Browse all 24

By: Chris Coyier

$
0
0
Shervin Sardari writes in: <blockquote> In the "room/process.php" file on line 21 and 26 you should add "UTF-8" inside the htmlentities()-function. Otherwise some characters (especially Ä, Ö, Ü, ä, ö, ü - which are very important in the German language) won't be displayed. The lines then should look like this: </blockquote> <pre><code>$nickname = htmlentities(strip_tags($_POST['nickname']), ENT_QUOTES, "UTF-8"); [...] $message = htmlentities(strip_tags($_POST['message']), ENT_QUOTES, "UTF-8"); </code></pre>

Viewing all articles
Browse latest Browse all 24

Latest Images

Trending Articles





Latest Images