| ... | ... |
@@ -23,7 +23,7 @@ |
| 23 | 23 |
// |
| 24 | 24 |
// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
| 25 | 25 |
// ---------------------------------------------------------------------- |
| 26 |
- |
|
| 26 |
+define("_CHARSET", "utf-8");
|
|
| 27 | 27 |
define("_BASEDIR", "../");
|
| 28 | 28 |
include("../config.php");
|
| 29 | 29 |
|
| ... | ... |
@@ -23,11 +23,10 @@ |
| 23 | 23 |
// |
| 24 | 24 |
// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
| 25 | 25 |
// ---------------------------------------------------------------------- |
| 26 |
- |
|
| 27 | 26 |
define("_BASEDIR", "../");
|
| 28 |
-$action = "backup"; |
|
| 27 |
+define("_CHARSET", "utf-8");
|
|
| 29 | 28 |
include("../config.php");
|
| 30 |
- |
|
| 29 |
+ |
|
| 31 | 30 |
$settingsresults = dbquery("SELECT * FROM ".$settingsprefix."fanfiction_settings WHERE sitekey = '$sitekey'");
|
| 32 | 31 |
$settings = dbassoc($settingsresults); |
| 33 | 32 |
foreach($settings as $var => $val) {
|
| ... | ... |
@@ -63,8 +62,10 @@ function datadump ($table) {
|
| 63 | 62 |
while($t = dbassoc($tabledata)) {
|
| 64 | 63 |
echo "INSERT INTO ".$table." "; |
| 65 | 64 |
$row = array( ); |
| 66 |
- foreach($t AS $field => $value) {
|
|
| 67 |
- $value = utf8_encode (escapestring($value) ); |
|
| 65 |
+ foreach($t AS $field => $value) {
|
|
| 66 |
+ //$value = utf8_encode (escapestring($value) ); |
|
| 67 |
+ $value = escapestring($value); |
|
| 68 |
+ $value = mb_convert_encoding($value, 'UTF-8', 'ISO-8859-1'); |
|
| 68 | 69 |
$value = str_replace("\n","\\n",$value);
|
| 69 | 70 |
if (isset($value)) $row[$field] = "\"$value\""; |
| 70 | 71 |
else $row[$field] = "\"\""; |