Jump to content

PHP does not show greek


Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

<?php

header('Content-Type: text/html; charset=ISO-8859-2');
mb_internal_encoding("ISO-8859-2");

$db = new mysqli("localhost", "user", "password", "player");
$db->set_charset("latin1");
$db->query("SET NAMES 'latin1'");
$db->query("SET CHARACTER SET 'latin1'");

$result = $db->query("SELECT vnum, locale_name FROM item_proto");
while($row = $result->fetch_assoc()){
    echo "ID:\t".$row['vnum']."\t".$row['locale_name'] . '<br />';
}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.