hce wrote:
On Mon, Jun 16, 2008 at 3:59 PM, Chris <dmagick@xxxxxxxxx> wrote:
hce wrote:
Hi,
I know PHP supports utf8 encode/decode, but does it support utf16
encode/decode? If yes, would you please point me a php manual URL?
It's listed as supported under the mbstring functions here:
http://www.php.net/manual/en/mbstring.supported-encodings.php
Thanks Chris for the link, PHP has utf8_encode and utf8_decode. Does
PHP provide utf16_encode and utf16_decode, or the mbstring has
different functions to encode and decode utf16?
the utf8_ functions are just a bodge to use with the xml parser and only works
to ISO-8859-1.
mbstring will 'translate' any multibyte string between any of the formats on
the list provided by the link.
So you just tell it what you want to do in
http://www.php.net/manual/en/function.mb-convert-encoding.php
There is no 'decode' since that is just a different 'encode'
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php