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

 ID:                 54445
 User updated by:    clombardo at incentient dot com
 Reported by:        clombardo at incentient dot com
 Summary:            PHP Version 5.3.3-1 Special Characters encoding
                     problem.
 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:

Could you please give me what and where to look for? I have been working
on this issue for a week with no solution. I have looked all over google
for similar issues and everything I tried did NOT solve the problem. I
did NOT install the PHP application on the server, so I do not know what
settings need to be made. Could you please tell me what setting and file
configurations I should be looking at to get utf-8 working properly for
PHP Version 5.3.3-1. Thanks.


Previous Comments:
------------------------------------------------------------------------
[2011-04-01 16:38:03] ras...@php.net

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.

------------------------------------------------------------------------
[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