You are here

function ARC_api_helper::encode_mysql_utf8_bugs in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 5.2 arc/ARC_api_helper.php \ARC_api_helper::encode_mysql_utf8_bugs()
  2. 5 arc/ARC_api_helper.php \ARC_api_helper::encode_mysql_utf8_bugs()
  3. 6 arc/ARC_api_helper.php \ARC_api_helper::encode_mysql_utf8_bugs()

File

arc/ARC_api_helper.php, line 52

Class

ARC_api_helper

Code

function encode_mysql_utf8_bugs($val = "") {
  $val = str_replace(utf8_encode(""), "&#arc220;", $val);
  $val = str_replace(utf8_encode(""), "&#arc223;", $val);
  $val = str_replace(utf8_encode(""), "&#arc246;", $val);
  $val = str_replace(utf8_encode(""), "&#arc252;", $val);
  return $val;
}