note 38671 added to function.mb-convert-encoding

From: Date: Fri, 02 Jan 2004 14:21:55 +0000
Subject: note 38671 added to function.mb-convert-encoding
Groups: php.notes 
Request: Send a blank email to php-notes+get-62780@lists.php.net to get a copy of this message
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); ?> ---- Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38671 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38671&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38671&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62780) next »