diff --git a/represent-map/add.php b/represent-map/add.php index f826cc7..10e9c23 100644 --- a/represent-map/add.php +++ b/represent-map/add.php @@ -42,7 +42,7 @@ } else { // insert into db, wait for approval - $insert = mysql_query("INSERT INTO places (approved, title, type, address, uri, description, owner_name, owner_email) VALUES (null, '$title', '$type', '$address', '$uri', '$description', '$owner_name', '$owner_email')") or die(mysql_error()); + $insert = mysql_query("INSERT INTO places (approved, title, type, address, uri, description, owner_name, owner_email) VALUES (null, '$title', '$type', _utf8'$address', '$uri', '$description', _utf8'$owner_name', '$owner_email')") or die(mysql_error()); // geocode new submission $hide_geocode_output = true; diff --git a/represent-map/admin/edit.php b/represent-map/admin/edit.php index 183793c..90ce5cc 100644 --- a/represent-map/admin/edit.php +++ b/represent-map/admin/edit.php @@ -10,7 +10,7 @@ exit; } - +mysql_query("SET NAMES 'utf8'"); // get place info $place_query = mysql_query("SELECT * FROM places WHERE id='$place_id' LIMIT 1"); if(mysql_num_rows($place_query) != 1) { exit; } diff --git a/represent-map/admin/header.php b/represent-map/admin/header.php index 06ea6c8..97345b2 100644 --- a/represent-map/admin/header.php +++ b/represent-map/admin/header.php @@ -41,6 +41,7 @@ $admin_head = "
+