Skip to content

Commit

Permalink
Merge pull request #10 from sroehrl/encoding
Browse files Browse the repository at this point in the history
Binary detection update to allow for better i18n
  • Loading branch information
sroehrl authored Feb 26, 2022
2 parents 3219386 + 83c0c61 commit a4e4764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DbOps.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public function mysqliStmtType($value)
*/
public static function isBinary($str)
{
return preg_match('~[^\x20-\x7E\t\r\n]~', $str) > 0;
// return preg_match('~[^\x20-\x7E\t\r\n]~', $str) > 0;
return !preg_match('//u', $str);
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "neoan3-apps/db",
"description": "neoan3 mysqli class",
"version": "0.3.5",
"version": "0.3.6",
"license": "MIT",
"require": {
"php": "^7.4||^8",
Expand Down

0 comments on commit a4e4764

Please sign in to comment.