polyfill
polyfill copied to clipboard
Intl Transliterator - polyfill
TODO:
- [ ] add more tests - https://github.com/voku/polyfill/blob/intl_transliterator/tests/Intl/Transliterator/TransliteratorTest.php
- [x] not working as expected for PHP <= 5.5
- [ ] some tests did not work on travis-ci (old ICU version)
QUESTIONS:
- [ ] do we need support for "Transliterator->direction"?
reference: https://github.com/voku/portable-ascii/issues/32
@nicolas-grekas Hi, here is my first quick try to move the ASCII stuff into a "Transliterator"-polyfill. Maybe you can take a look at this if you have time, thanks.
@voku well, debugging why some garbage is returned when running on such old version ?
@stof Garbage was return because old PHP versions do not use "UTF-8" encoding by default.
Do we want to support the INTL_ICU_VERSION constant?
Sorry we didn't catch up on this topic. The amount of work is too high I suppose. Please let me close. Thanks for the PR!