FoxBox arrow How-to arrow Arabian characters
Romana
Arabian characters PDF Imprimare E-mail
There are no translations available

This article illustrates how to manage the Arabian characters' encodingin your SMS

 

To correctly handle other alphabets on received SMS, you just have to modify the eventhandler (/etc/sms/scripts/) inserting these rows:

if [ "$1" = "RECEIVED" ]; then

if sed -e '/^$/ q' < "$2" | grep "^Alphabet: UCS2" > /dev/null; then
TMPFILE=`mktemp /tmp/smsd_XXXXXX`
sed -e '/^$/ q' < "$2" | sed -e 's/Alphabet: UCS2/Alphabet: UTF-8/g' > $TMPFILE
sed -e '1,/^$/ d' < "$2" | iconv -f UNICODEBIG -t UTF-8 >> $TMPFILE
mv $TMPFILE "$2"
fi

/etc/sms/scripts/parser4.php $2

fi

In this way those characters will be recognized and properly handled (and shown).
 
< Precedent   Urmator >

buy foxbox
buy on FoxBox eShop



For further info contact us by mail This e-mail address is being protected from spam bots, you need JavaScript enabled to view it providing us the FoxBox model you need and your company details.

KDEV di Davide Cantaluppi, P.IVA 02984320131

http://www.kdev.it