ID:               42295
 Updated by:       [EMAIL PROTECTED]
 Reported By:      webmaster at philcorda dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         mcrypt related
 Operating System: Suse Linux 9.3
 PHP Version:      5CVS-2007-08-14 (CVS)
 New Comment:

mcrypt produces binary output which is neither iso-8859-1 nor utf-8
therefore you should tell your database that that data is binary stuff,
not text data.


Previous Comments:
------------------------------------------------------------------------

[2007-08-14 12:44:59] webmaster at philcorda dot de

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 this bug report at http://bugs.php.net/?id=42295&edit=1

Reply via email to