Skip to content

Commit

Permalink
Umm... Iconv?
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstrodl committed Mar 19, 2024
1 parent 3505f8c commit 855dab4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion inc/databaseConn.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
global $DATABASE_SERVER, $DATABASE_USER, $DATABASE_PASS, $DATABASE_DB;

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

// Error check
if (!$dbConn) {
Expand Down
1 change: 1 addition & 0 deletions tools/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ function fileToTempTable(string $tableName, $file, $fields, $fileSize, string $p
while ($str = fgets($file, 4096)) {
// Trim those damn newlines
$str = trim($str);
$str = iconv("ISO-8859-1", "UTF-8", $str);

// Progress bar
if ($this->debugMode) {
Expand Down

0 comments on commit 855dab4

Please sign in to comment.