Rev 800 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 800 | Rev 1046 | ||
---|---|---|---|
Line 147... | Line 147... | ||
147 | $json_out['error'] = $errmsg; |
147 | $json_out['error'] = $errmsg; |
148 | $out = json_encode($json_out); |
148 | $out = json_encode($json_out); |
149 | 149 | ||
150 | if ($out === false) { |
150 | if ($out === false) { |
151 | // Some modules (like ODBC) might output non-UTF8 data |
151 | // Some modules (like ODBC) might output non-UTF8 data |
152 | $json_out['error'] = utf8_encode($errmsg); |
152 | $json_out['error'] = vts_utf8_encode($errmsg); |
153 | $out = json_encode($json_out); |
153 | $out = json_encode($json_out); |
154 | } |
154 | } |
155 | 155 | ||
156 | @header('Content-Type:application/json; charset=utf-8'); |
156 | @header('Content-Type:application/json; charset=utf-8'); |
157 | 157 |