From:             
Operating system: Mac 10.6.6
PHP version:      5.3SVN-2011-04-01 (snap)
Package:          *Unicode Issues
Bug Type:         Bug
Bug description:PHP Version 5.3.3-1 Special Characters encoding problem.

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 bug report at http://bugs.php.net/bug.php?id=54445&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54445&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54445&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54445&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54445&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54445&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54445&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54445&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54445&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54445&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54445&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54445&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54445&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54445&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54445&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54445&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54445&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54445&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54445&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54445&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54445&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54445&r=mysqlcfg

Reply via email to