On Mon, Dec 8, 2008 at 11:11 PM, rdz22 <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> sorry if it was allready discuused, but I did not found any solution for my
> problem..

The conversion that you are doing is from wrong character set.

The Kannel user guide says:
%C      message charset: for a "normal" message, it will be "GSM"
(coding=0), "binary" (coding=1) or "UTF-16BE" (coding=2). If the
message was successfully recoded from Unicode, it will be
"WINDOWS-1252"

So, if the charset is UTF-16BE it will be recoded to WINDOWS-1252.

This means that the conversion should be done from WINDOWS-1252 to ISO-8859-1:

if ($mes_cset=="UTF-16BE"){
       
$mes_service=mb_convert_encoding($mes_service,"ISO-8859-1","WINDOWS-1252");
       
$mes_message=mb_convert_encoding($mes_message,"ISO-8859-1","WINDOWS-1252");
}



HTH, Jovan

Reply via email to