By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,719 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,719 IT Pros & Developers. It's quick & easy.

Convert HTML entities to Unicode UCS2? What to do?

P: n/a
Hallo,

does anyone know how to convert HTML Entities into UCS2-String (Value).
For example: I need to convert Sułowska 43 (value in mysql
database) to a unicode string with the specified polish character(s)
(Polish is just a example).
--- Currently i convert every usual ASCII-String by using the php
multibyte functions. This it how it looks like: ---

$string_ASCII = "test";
$string_UCS2 = mb_convert_encoding( $string_ASCII, 'UCS-2LE',
'ISO-8859-1');

-----

Any ideas? Thanks in advance...
Regards,
Alexander

Jan 25 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
..oO(Al************@googlemail.com)
>does anyone know how to convert HTML Entities into UCS2-String (Value).
You could try one of these:

http://www.php.net/html_entity_decode
http://www.php.net/recode

HTH
Micha
Jan 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.