php-i18n Digest 12 Oct 2006 12:47:07 -0000 Issue 335
Topics (messages 1026 through 1026):
html_entity_decode problem with gb2312 charset and numeric entities
1026 by: dan1
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin 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
--- End Message ---