note 101600 rejected from function.mb-strtoupper by didou
| From: | didou@php.net | Date: | Fri, 19 Apr 2019 09:37:28 +0000 |
| Subject: | note 101600 rejected from function.mb-strtoupper by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210622@lists.php.net to get a copy of this message | ||
Note Submitter: tomasz at trejderowski dot pl
----
Please note, that in many cases, forcing UTF-8 encoding with second parameter is necessary. PHP
documentation states that if this parameter is omitted, the internal character encoding value will
be used. But in my case it turned out to be not true. Even though I have all my pages encoded in
UTF-8 and my DB connection set to force UTF-8 encoding, comparison of user-input and DB-retrieved
data, which is using mb_strtoupper, did not work until I forced encoding.