Edit report at http://bugs.php.net/bug.php?id=54445&edit=1

 ID:                 54445
 Updated by:         ras...@php.net
 Reported by:        clombardo at incentient dot com
 Summary:            PHP Version 5.3.3-1 Special Characters encoding
                     problem.
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            *Unicode Issues
 Operating System:   Mac 10.6.6
 PHP Version:        5.3SVN-2011-04-01 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

Figure out what changed between 5.3.3-0 and 5.3.3-1. This was obviously
a change done by whoever built your PHP package and not us.


Previous Comments:
------------------------------------------------------------------------
[2011-04-01 16:23:11] clombardo at incentient dot com

Description:
------------
For special characters such as Ormož PHP Version 5.3.3-1 displays
Ormo[0098]. Therefore special characters are not being displayed
properly on the webpage. 



For PHP Version 5.3.3-0 it displayed Ormož properly. Therefore, PHP
Version 5.3.3-1 is messing up all special characters on the webpage.
Please respond with a solution ASAP as this problem is costing the
company I am working for a lot of money. Thank you.

Test script:
---------------
        public static function UTF8Encode($string) {

                $retVal = '';



                $cur_encoding = mb_detect_encoding($string) ;



                if ($cur_encoding == "UTF-8" && 
mb_check_encoding($string,"UTF-8")) {

                        $retVal = $string;

                } else {

                        $retVal = utf8_encode($string);

                }



                return $retVal;

        }

Expected result:
----------------
See my explaination.

Actual result:
--------------
See my explaination.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54445&edit=1

Reply via email to