html_entity_decode problem with gb2312 charset and numeric entities

From: Date: Thu, 12 Oct 2006 12:46:43 +0000
Subject: html_entity_decode problem with gb2312 charset and numeric entities
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1026@lists.php.net to get a copy of this message
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 "供桌面" 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

« previous php.i18n (#1026) next »