GreyWyvern wrote:[color=blue]
> Hello all![/color]
hello again.
[color=blue]
> I'm in need of an algorithm to change windows-874 (Thai) encoding to
> UTF-8, without using PHPs iconv or similar functions. I've done the
> requisite googling and searching through the notes on php.net but
> nothing (that I could see) has turned up.
>
> Right now I'll be looking for pages explaining the inner workings of
> windows-874 in the hopes that I might be able to code the algorithm
> myself, but I thought I'd ask here as a last desperate hope :)
>
> Any programming language is fine. I'll just translate it to PHP.[/color]
OK, if you aren't going to hit the PHP iconv C source to find it, how
about some Perl?
http://search.cpan.org/~elizabeth/Ne...NVERT_TO_UTF-8
....of particular interest to you:
"windows874 convert from windows-874 to UTF-8"
"illegal_windows874 remove characters illegal for windows-874"
Probably not exactly what you are looking for, but you may be able to
find what you need in here....
You can view the source directly here:
http://search.cpan.org/src/ELIZABETH...Trieve/UTF8.pm
HTH - and yes, c.l.php is great! :P
--
Justin Koivisto -
spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
SEO Competition League:
http://seo.koivi.com/