Skip to content

Commit 855dab4

Browse files
committed
Umm... Iconv?
1 parent 3505f8c commit 855dab4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

inc/databaseConn.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
global $DATABASE_SERVER, $DATABASE_USER, $DATABASE_PASS, $DATABASE_DB;
3131

3232
$dbConn = new mysqli($DATABASE_SERVER, $DATABASE_USER, $DATABASE_PASS, $DATABASE_DB);
33-
mysqli_set_charset($dbConn, "latin1");
3433

3534
// Error check
3635
if (!$dbConn) {

tools/Parser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ function fileToTempTable(string $tableName, $file, $fields, $fileSize, string $p
199199
while ($str = fgets($file, 4096)) {
200200
// Trim those damn newlines
201201
$str = trim($str);
202+
$str = iconv("ISO-8859-1", "UTF-8", $str);
202203

203204
// Progress bar
204205
if ($this->debugMode) {

0 commit comments

Comments
 (0)