UTF8 problem with:
$opt[“subGrid”] = true;
$opt[“subgridurl”] = “contractDetail”;
$opt[“subgridparams”] = “contract_firstname,contract_lastname”;
Subgrid
$g = new \jqgrid($db_conf);
$name = $_GET[“contract_lastname”];
$opt[“caption”] = “Offer / Contract Details ” . $name;
Error: Uncaught SyntaxError: expected expression, got ‘,’
Only occurs if there is ÜÖÄüöä in the last name? Umalute occurs in Germany, otherwise it works.
Database is UTF8 utf8mb4_unicode_ci
1 Answers
Hello,
With following line:
$name = $_GET[“contract_lastname”];
Try:
$name = utf8_encode($_GET[“contract_lastname”]);
Also share the complete code where you are using this variable $name.
Your Answer