#31531 [NEW]: include or require a unicode file (php or html)

From: Date: Thu, 13 Jan 2005 09:25:50 +0000
Subject: #31531 [NEW]: include or require a unicode file (php or html)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72059@lists.php.net to get a copy of this message
From: hieu121081 at yahoo dot com Operating system: windows PHP version: 4.3.9 PHP Bug Type: *General Issues Bug description: include or require a unicode file (php or html) Description: ------------ I read BUG #22778, but thit problem did'n slove. so that, i decided report my problem. I create a php or html file by notepad, and save them as utf-8. in a other php file, sample as test.php , In this file, I use function include or require to include utf-8 file. When i use a browser (IE) to open file test.php, i alway see in my code a spacial charactor as spuare when i view source. But i browser, sometime i see a spacial charactor as  and when i refresh that page, it'll be hidden. This error is not big problem, but i think, if that charactor don't display, is better. Sorry if My English not good. Reproduce code: --------------- This file is included (file1.php) <?php $biến = "Không biết có được không?"; echo $biến; ?> This file is include file above (file2.php) <?php require_once("test.php"); ?> Expected result: ---------------- source HTML {a spacial charactor display here, but i can copy it}Chào mọi người, Chúng ta bắt.Không biết có được không? -- Edit bug report at http://bugs.php.net/?id=31531&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31531&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31531&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31531&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31531&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31531&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31531&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31531&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31531&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31531&r=support Expected behavior: http://bugs.php.net/fix.php?id=31531&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31531&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31531&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31531&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31531&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31531&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31531&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31531&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31531&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31531&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31531&r=mysqlcfg

« previous php.bugs (#72059) next »