Script to convert utf-8 to html entities?

From: Date: Sat, 03 Apr 2004 03:37:50 +0000
Subject: Script to convert utf-8 to html entities?
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-681@lists.php.net to get a copy of this message
Hello, I have been having a lot of problems with .po 's in utf-8 on linux systems... A solution to incorrect displays would be to convert the .po content into html_entities (&#xxxx). I don't know a lot about this, but can anyone post a script snippet to do this? Ie. read a .po file and output the same with html entities? I have tried sending gettext output to html_entities() through php, but gettext doesn't even return the utf-8 content correctly in the first place. I have seen a lot of javascript scripts which work fine, but am looking for a command line script (perl/php etc.) Thanks Amadeus -- poff@sixbit.org SDF Public Access UNIX System - http://sdf.lonestar.org

« previous php.i18n (#681) next »