From:             ceo at l-i-e dot com
Operating system: FreeBSD 5.3
PHP version:      4.4.2
PHP Bug Type:     *Languages/Translation
Bug description:  utf8_decode fails ; UTF-8 headers work

Description:
------------
I'm not an expert in multi-lingual character encoding sets stuff, but...

This version uses PHP's utf8_decode, and I get funky useless characters:
http://acousticdemo.com/info.com/answers/answers.php?qkw=Catherine+de+Medici&utf8_decode=1

This version sends a charset UTF-8 header (Mozilla based) and a META
charset UTF-8 (MS IE) and it "works":
http://acousticdemo.com/info.com/answers/answers.php?qkw=Catherine+de+Medici

This was actually in 4.4.0 and also in 5.0.4, so it MIGHT be fixed in CVS
-- but I have no control over the versions of PHP on the servers involved,
and am unlikely to have such control in the future...  Best I can do,
sorry.


Reproduce code:
---------------
http://acousticdemo.com/info.com/answers/answers.phps

You will not, however, be able to run the code on your own box, because
your IP isn't allowed to get that content...

I can maybe hook you up with Answers.com, or I can do whatever it takes to
get you the raw data for this one page, or...


Expected result:
----------------
I expected PHP's UTF8 decoding function to work as well as the browser's.


Actual result:
--------------
I get a lot of funky characters that just aren't right.

I can't guarantee that it's not the data that is bad, but the browser is
handling it, so...


-- 
Edit bug report at http://bugs.php.net/?id=36138&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36138&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36138&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36138&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36138&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36138&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36138&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36138&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36138&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36138&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36138&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36138&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36138&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36138&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36138&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36138&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36138&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36138&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36138&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36138&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36138&r=mysqlcfg

Reply via email to