|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-04-01 04:37 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2021-04-01 04:37 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Description: ------------ Have application running in 2 servers with different php versions, both connecting to same databse(sybase). On premise php 5.4 AWS - php 5.6 Have issues in json_encode german characters in aws. I tried 1. echo json_last_error_msg(); -- gave error Malformed UTF-8 characters, possibly incorrectly encoded.But the same code have encoding issues in on premise server 2.Charset UTF-8 is specified in sybase connection string and content="text/html; charset=UTF-8 is also added. Am getting records from sybase procedure succesfully and after json encode returns null. There are no issues with on prem connecting to same sybase database Test script: --------------- sybase procedure result $result = array('ID' => 1420,'Channel' => Retail - Fl�chenm�rkte) print_r(var_dump(json_encode($result))); // returns null in aws