Hi, Is is possible to "translate" non-english text into ASCII text so that SIP phones would correctly display non-ASCII characters received from SendText() ? I think SIP MESSAGE (rfc3428) on which SendText() currently relies, defines "text/plain" Content-type but googling, I can't find a source describing what text/plain can or cannot be. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081124/fff7bfef/attachment.htm
Olivier schrieb:> Is is possible to "translate" non-english text into ASCII textIt 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.> so that SIP > phones would correctly display non-ASCII characters received from > SendText() ? > I think SIP MESSAGE (rfc3428) on which SendText() currently relies, defines > "text/plain" Content-type but googling, I can't find a source describing > what text/plain can or cannot be.You could try to add a charset attribute like so: Content-Type: text/plain; charset=utf-8 but it's unlikely that any phones pay attention. 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 --