html_entity_decode problem with gb2312 charset and numeric entities

[email protected] ("dan1")
Newsgroups php.i18n
Message-ID <006201c6edfc$78d75fc0$1d00a8c0@apocalypse>
Hello.

I try to use the html_entity_decode function to pass from numeric HTML 
character codes to the gb2312 charset.
example: I want the string "&#20379;&#26700;&#38754;" be converted in it's 
gb2312 charset, someting like: "¹©×ÀÃæÊ¹ÓõÄ×ÔÈ".
Is there a way to do this ? I tried already the numeric conversion code from 
daniel at brightbyte on this page:
http://ch2.php.net/html_entity_decode
But without any success, because chr() can only convert values until 255.

Shouldn't html_entity_decode() perform this kind of numeric conversions for 
all charsets defined in that function ? (maybe a feature request)

Thank you for any help.
Daniel
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.