php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42241 mysql_real_escape string handles some UTF-8 characters incorrectly
Submitted: 2007-08-08 08:41 UTC Modified: 2007-08-08 10:36 UTC
From: ochronus at gmail dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.2.4RC1 OS: Linux 2.6.15
Private report: No CVE-ID: None
 [2007-08-08 08:41 UTC] ochronus at gmail dot com
Description:
------------
string before mysql_real_escape (in UTF-8)
?umiv? instantn? manik?ra (Instant Manicure) 8x 10 g
string after mysql_real_escape
▒ umiv? instantn? manik?ra (Instant Manicure) 8x 10 g

the mysql connection is set to be UTF-8 correctly. Many other UTF-8 escapes work correctly.





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-08 10:36 UTC] ochronus at gmail dot com
My bad.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 14:01:33 2024 UTC