[asterisk-users] SendText and non-ASCII characters
Philipp Kempgen
philipp.kempgen at amooma.de
Mon Nov 24 09:23:59 CST 2008
Philipp Kempgen schrieb:
> Olivier schrieb:
>
>> Is is possible to "translate" non-english text into ASCII text
>
> It is.
> Unicode decomposition (NFD or NFKD) is what you're looking for.
> Many programming languages can do that out of the box or there
> are extensions or libraries available.
https://svn.amooma.com/gemeinschaft/trunk/opt/gemeinschaft/lib/utf8-normalize/
If your "non-english" text is in UTF-8 encoding the
gs_utf8_decompose_to_ascii() function in gs_utf_normal.php
does what you need.
Philipp Kempgen
--
http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
--
More information about the asterisk-users
mailing list