George Katsanos wrote:

Hello ,

I am trying to find out how I can use GREEK characters in the http query to send sms messages.

What are the actions I should make ? [kannel.conf , http settings , o/s settings?.]

I have to tell that my KDE / FBSD writes greek chars normally , so maybe no problem with that , But they send as chinese [ %C %F etc..]

Thank you

There are actually two choices:
- either unicode, which uses double-byte chars and will limit you sms to 70 chars but is pretty straight-forward or - using the GSM 7bit standard charset and using the full 160 SMS chars. But then the following limitations apply: 1) There's only support in there for capital greek letters that differ (optically) from the latin ones. Meaning that you're limited to CAPITAL letters only, at least for greek. 2) You'll need to write some sort of translation for all chars, e.g. greek ro ``p'' will need to be transliterated to latin capital ``P'', while delta will need to be chr(0x10) . Pretty simple really, although not very intuitive. The following table will help you out in this one...
$delta = chr(0x10);
$fi = chr(0x12);
$gamma = chr(0x13);
$lambda = chr(0x14);
$omega = chr(0x15);
$pi = chr(0x16);
$psi = chr(0x17);
$sigma = chr(0x18);
$theta = chr(0x19);
$ksi = chr(0x1A);

So, to sum up, a GSM 7bit using greek message saying ``DEN SE XERW'' would be:
http://127.0.0.1:13002/cgi-bin/sendsms?user=xxxx&pass=yyyy&to=<Recipient>&text=%10EN+%18E+%1AEP%15

Hope this helps.


Reply via email to