Re: [PHP-WIN] ascii to utf-16

2003-08-21 Thread Joel Rees
"Achilles Maroulis" <[EMAIL PROTECTED]> > > Is there a way to convert a string to unicode utf-16? > > Apparently not built into php, which sort of surprises me.. > > You could make one if you want, it's not hard. > ... > If you REALLY REALLY REALLY want a conversion function, I might be able >

Re: [PHP-WIN] ascii to utf-16

2003-07-24 Thread Joel Rees
> Is there a way to convert a string to unicode utf-16? Apparently not built into php, which sort of surprises me.. You could make one if you want, it's not hard. It's just a bunch of shifting, testing, and adding, and the algorithm is very straightforward. Just be aware that recognizing the long