Bug #80925 [Opn->Nab]: PHP 5.6

From: Date: Thu, 01 Apr 2021 04:37:52 +0000
Subject: Bug #80925 [Opn->Nab]: PHP 5.6
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233116@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80925&edit=1

 ID:                 80925
 Updated by:         requinix@php.net
 Reported by:        r dot remya1 at gmail dot com
 Summary:            PHP 5.6
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            *Unicode Issues
 Operating System:   RHEL
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

99% sure you have character encoding problems, meaning something somewhere is not using UTF-8.


Previous Comments:
------------------------------------------------------------------------
[2021-04-01 04:29:25] r dot remya1 at gmail dot com

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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80925&edit=1


Thread (2 messages)

« previous php.bugs (#233116) next »