note 38671 deleted from function.mb-convert-encoding by nlopess

From: Date: Fri, 02 Jan 2004 15:22:31 +0000
Subject: note 38671 deleted from function.mb-convert-encoding by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62786@lists.php.net to get a copy of this message
Note Submitter: bernarryu@hotmail.com Bernar Dongzu Ryu ---- A simple sample to see unbroken 2byte characters on FLASH's action script. <? $use_this = "some 2byte characters from DB or input by yourself"; /* Convert internal character encoding to UTF-8 for FLASH */ $str = mb_convert_encoding($use_this, "UTF-8", "auto"); /* Open and write a text file using converted string. This text file will be loaded by FLASH's action script */ $fp = fopen("/usr/local/apache/htdocs/want.txt","wb"); fwrite($fp,$str); fclose($fp); ?>

« previous php.notes (#62786) next »