So following on the text below here is PHP functionality for doing GSM
Greek (All caps):

//Define the GSM ASCII values for greek:
define('EL_GAMMA', chr(hexdec('0x13')));
define('EL_DELTA', chr(hexdec('0x10')));
define('EL_THETA', chr(hexdec('0x19')));
define('EL_LAMDA', chr(hexdec('0x14')));
define('EL_XI', chr(hexdec('0x1A')));
define('EL_PI', chr(hexdec('0x16')));
define('EL_SIGMA', chr(hexdec('0x18')));
define('EL_PHI', chr(hexdec('0x12')));
define('EL_PSI', chr(hexdec('0x17')));
define('EL_OMEGA', chr(hexdec('0x15')));

//Mapping Table the $X strings can be replaced by the characters used
internally in your app.
$en2el_table = array(
    '$G'=>EL_GAMMA,
    '$D'=>EL_DELTA,
    '$U'=>EL_THETA,
    '$L'=>EL_LAMDA,
    '$J'=>EL_XI,
    '$P'=>EL_PI,
    '$S'=>EL_SIGMA,
    '$F'=>EL_PHI,
    '$C'=>EL_PSI,
    '$V'=>EL_OMEGA,
);

// you could use two arrays and just run str_replace once.
    foreach ($en2el_table as $k=>$v) {
        $str = str_replace($k, $v, $str);
    }


Kyriacos Sakkas

Δημήτρης Ευμορφόπουλος wrote:
> Hello to both, 
>
>       Seik you are right in what you are saying but I have 2 comments ... 
>
>       1) Text::iconv in perl is about 3 times slower than 
> Encode::decode/encode 
>
>       2) greek can be encoded in 7bits plain GSM0338 instead of UCS-2 iff the 
> whole text is in caps and all some conversion is applied to it for some 
> characters ... Sending SMS's has a cost so why reduce the size to 70 when you 
> can have the full 160 chars with 7bit ... any how ... when it comes to 
> concept you are right ...
>
> And yes we voted for Bulagria ... it was once of the best eurovision songs 
> ... :-)
>
> Dimitris Evmorfopoulos
>
> -----Original Message-----
> From: seik [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 20, 2007 1:46 PM
> To: Κωνσταντίνος Λιαδάκης
> Cc: [email protected]
> Subject: Re: CANT SEND GREEK CHARACTERS
>
> in general,
> try to encode from greek to ucs-2be
> dont use mysql iconv functions, they are non reliable,
> use perl Text::Iconv or php iconv() or whatever scripting/programming 
> language you are familiar with.
> then hexencode the result, set data coding value to 2 and unset alt-dcs to -1.
> thats it
>
> i do that for Cyrilic cp1251 MT traffic
>
> Cheers from Bulgaria, I still remember you guys voted for us in Eurovisia 
> 2007 contest.
>
> seik
>
>
>
> -----Original Message-----
> From: Κωνσταντίνος Λιαδάκης [EMAIL PROTECTED]
> Sent: 19 ??? 2007 ?.
> To: seik
> Subject:CANT SEND GREEK CHARACTERS 
>
>   
>> Hello,
>>  
>> I am trying to send greek characters with kannel.
>>  
>> I have tried using 1.4.1 and CVS version which I suppose they require 
>> different encodings...
>>  
>> Can somebody help me clear things in my mind....
>>  
>> I need to know the following if possible:
>>  
>> 1.        the encoding my webpage must have
>> 2.        what coding I need to set for kannel
>> 3.       If I need to put in kannel.conf any charset values (iso-8859-1, 
>> utf, e.t.c)
>>  
>> I would like some answers of the above questions for both stable release and 
>> CVS
>>  
>> I have read documentation, and have tried almost any combination. SMSC I use 
>> are both smpp and UCP/EMI
>>  
>> Thank you very much in advance for your help
>>  
>> Kind regards
>>  
>> Dinos 
>>     
>
>
>   
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.476 / Virus Database: 269.10.9/907 - Release Date: 18/7/2007 
>> 3:30 μμ
>>     
>
>
>
>
>
>
>
>   


-- 
Kyriacos Sakkas
Development Team
Netsmart
Tel: + 357 22 452565
Fax: + 357 22 452566
Email: [EMAIL PROTECTED]
http://www.netsmart.com.cy

Taking Business to a New Level!

** Confidentiality Notice: The information contained in this email
message may be privileged, confidential and protected from disclosure.
If you are not the intended recipient, any dissemination, distribution,
or copying of this  email message is strictly prohibited.
If you think that you have received this email message in error, please
email the sender at [EMAIL PROTECTED] **


Reply via email to