Bug #79217 [Opn]: Last character of a UTF-8 string gets messed up
| From: | cmb@php.net | Date: | Tue, 04 Feb 2020 08:56:37 +0000 |
| Subject: | Bug #79217 [Opn]: Last character of a UTF-8 string gets messed up | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225341@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79217&edit=1
ID: 79217
Updated by: cmb@php.net
Reported by: steve dot lloyd at gmail dot com
Summary: Last character of a UTF-8 string gets messed up
Status: Open
Type: Bug
Package: ODBC related
Operating System: Centos
PHP Version: 7.3.14
Block user comment: N
Private report: N
New Comment:
This seems to be related to bug #44278.
Can you try basically the same script with PDO_ODBC instead?
Previous Comments:
------------------------------------------------------------------------
[2020-02-03 22:06:52] steve dot lloyd at gmail dot com
Description:
------------
Last character of a UTF-8 string gets messed up. See stackoverflow URL in Test Script section. I
have tried this with multiple PHP versions. I have concluded it must be an issue with PHP ODBC
functions as it works fine in other languages (python, isql).
Test script:
---------------
https://stackoverflow.com/questions/59904479/last-character-issue-with-sap-hana-utf8-on-php
Expected result:
----------------
å éè´/ä»åºè被å»ç»
å 任塿¸
å/BOMè被å»ç»
MPN:BOMæ¬å¤´å»ç»
gesp. für Besch./Lager
gesp. für Arb.plan/Stückl
Actual result:
--------------
å éè´/ä»åºè被å»ad
å 任塿¸
å/BOMè被ader
MPN:BOMæ¬å¤´å»ç»
gesp. für Besch./Lager
gesp. für Arb.plan/Stüca
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79217&edit=1