Script to convert utf-8 to html entities?

Amadeus <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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
-- 
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.