#42295 [NEW]: mcrypt outputs are latin1 instead of utf8
| From: | webmaster at philcorda dot de | Date: | Tue, 14 Aug 2007 12:44:59 +0000 |
| Subject: | #42295 [NEW]: mcrypt outputs are latin1 instead of utf8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-116049@lists.php.net to get a copy of this message | ||
From: webmaster at philcorda dot de
Operating system: Suse Linux 9.3
PHP version: 5CVS-2007-08-14 (CVS)
PHP Bug Type: mcrypt related
Bug description: mcrypt outputs are latin1 instead of utf8
Description:
------------
Today, I tried to use mcrypt with utf8.
The background was a mysql-connection running in utf8-mode and for this
reason all the transfered strings have to be encoded in utf8.
I set the default charset in the php.ini to utf-8 and php works fine but
then I tried to encrypt strings with mcrypt and all the strings where given
out in latin1 / ISO-8859-1 instead of utf-8.
I don't know why mcrypt delivers the strings in latin1 instead of utf-8
but I would be happy if this bug could be solved 'till next version.
For this time I'll use utf8_encode().
Reproduce code:
---------------
Irrelevant
Expected result:
----------------
utf-8 strings
Actual result:
--------------
latin1 strings
--
Edit bug report at http://bugs.php.net/?id=42295&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42295&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42295&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42295&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42295&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42295&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42295&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42295&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42295&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42295&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42295&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42295&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42295&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42295&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42295&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42295&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42295&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42295&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42295&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42295&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42295&r=mysqlcfg