Skip to content

Commit

Permalink
[LAD-19] Add flag to pass literal Chinese character in param
Browse files Browse the repository at this point in the history
  • Loading branch information
suzan66 committed Oct 2, 2024
1 parent 5427fdc commit 8e01d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function specific_feedback(question_attempt $qa) {
$error_prompt = $outcome->errormessage;
if ($error_prompt == null || $error_prompt == '') {
$testresults = $outcome->get_test_results($q);
$error_prompt = json_encode($testresults);//获取testresults. 二维array转换json string
$error_prompt = json_encode($testresults, JSON_UNESCAPED_UNICODE);//获取testresults. 二维array转换json string
}
$res = $this->send_post_request($question_full, $currentanswer, $error_prompt);
$fb .= $res;
Expand Down

0 comments on commit 8e01d06

Please sign in to comment.