API response breaking special characters in French |
This is the part I have to reveal
Code: $message = lang('Basic.global.deleteSuccess'); PHP Code: $message = "L\'enregistrement de Ville a été supprimé avec succès."; did not change the result, but changing respondDeleted(...) method to the following: PHP Code: $response = $this->respondDeleted(['id' => $id, 'msg'=>$message]); and in JS Code: $.ajax({ I have yet to work out what happens with PHP Code: $this->failServerError( ... ) though. InsiteFX said: Try changing the nwssage string. PHP Code: // change this Not tested, but sometimes it depends on the type of quotes. CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5) |
Messages In This Thread |
API response breaking special characters in French - by gosocial2 - 08-15-2021, 05:31 AM
RE: API response breaking special characters in French - by InsiteFX - 08-16-2021, 02:35 AM
RE: API response breaking special characters in French - by gosocial2 - 08-17-2021, 05:46 AM
|