Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Values with "é" or "è" cause responses to show NULL #2

Open
michaelyork opened this issue May 5, 2013 · 1 comment
Open

Values with "é" or "è" cause responses to show NULL #2

michaelyork opened this issue May 5, 2013 · 1 comment

Comments

@michaelyork
Copy link

No description provided.

@ludesign
Copy link

This is a wide known issue; You must encode characters to utf8 before passing them to json_encode. Add this piece of code

// map to utf8 to avoid broken json
$result = array_map('utf8_encode', $result);

right after (below)

if($result = $this->db->fetch_array()){

in lib/arrest-mysql.php file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants