Polish Characters Encoding
Polish Characters Encoding
Hi,
What is the best encoding method to send Polish characters to the handset. From research ISO88592 is the character set which contains the extended characters. I have tested with different encodings and I cannot see the character ó in my messages.
Steve
What is the best encoding method to send Polish characters to the handset. From research ISO88592 is the character set which contains the extended characters. I have tested with different encodings and I cannot see the character ó in my messages.
Steve
Re: Polish Characters Encoding
Hi stevep,
It depends on how SMSC processes SMPP text.
GSM 03.38 has only character ò (0x08). I don't see ó there.
For russian we sometimes use data_codings 0x4.
In worst case you need to use UCS2 data coding.
It depends on how SMSC processes SMPP text.
GSM 03.38 has only character ò (0x08). I don't see ó there.
For russian we sometimes use data_codings 0x4.
In worst case you need to use UCS2 data coding.
Re: Polish Characters Encoding
Thank you for the reply.. I had a response from my carrier..
Steve
I have tried Latin1 without success, is there some mapping to do?"ó is part of latin 1 (should be F3 in the table). So in theory you should be able to send it if you set data coding to 0x03"
Steve
Re: Polish Characters Encoding
Please try code below
Code: Select all
client.MapEncoding(DataCodings.Latin1, Encoding.GetEncoding("iso-8859-2"));
Re: Polish Characters Encoding
Thank you, I will try that.
Does that use 8bits for all characters or just the ones in 8859-2?
Just want to be sure not to go over 140 bytes.
Steve
Does that use 8bits for all characters or just the ones in 8859-2?
Just want to be sure not to go over 140 bytes.
Steve
Re: Polish Characters Encoding
with this mapping client will send bytes array of the text encoded in 8859-2 when data_coding Latin1 is specified.
Re: Polish Characters Encoding
Hi Alt,
Does the enclosed look valid as it appears I am not able to send Polish characters. data is the
if (smsMessage.Body.DataCoding == DataCoding.et7bitText)
{
data.DataCoding = DataCodings.Default;
_smpp.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding());
}
else if (smsMessage.Body.DataCoding == DataCoding.etUCS2Text)
{
data.DataCoding = DataCodings.UCS2;
_smpp.MapEncoding(DataCodings.UCS2, System.Text.Encoding.BigEndianUnicode);
}
else if (smsMessage.Body.DataCoding == DataCoding.etISO88591)
{
data.DataCoding = DataCodings.Latin1;
_smpp.MapEncoding(DataCodings.Latin1, Encoding.GetEncoding("iso-8859-1"));
}
else if (smsMessage.Body.DataCoding == DataCoding.etISO88592)
{
data.DataCoding = DataCodings.Latin1;
_smpp.MapEncoding(DataCodings.Latin1, Encoding.GetEncoding("iso-8859-2"));
}
byte[] text_bytes = _smpp.GetMessageBytes(smsMessage.Body.Text.Value, data.DataCoding);
data.ShortMessageBytes = text_bytes;
Steve
Does the enclosed look valid as it appears I am not able to send Polish characters. data is the
if (smsMessage.Body.DataCoding == DataCoding.et7bitText)
{
data.DataCoding = DataCodings.Default;
_smpp.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding());
}
else if (smsMessage.Body.DataCoding == DataCoding.etUCS2Text)
{
data.DataCoding = DataCodings.UCS2;
_smpp.MapEncoding(DataCodings.UCS2, System.Text.Encoding.BigEndianUnicode);
}
else if (smsMessage.Body.DataCoding == DataCoding.etISO88591)
{
data.DataCoding = DataCodings.Latin1;
_smpp.MapEncoding(DataCodings.Latin1, Encoding.GetEncoding("iso-8859-1"));
}
else if (smsMessage.Body.DataCoding == DataCoding.etISO88592)
{
data.DataCoding = DataCodings.Latin1;
_smpp.MapEncoding(DataCodings.Latin1, Encoding.GetEncoding("iso-8859-2"));
}
byte[] text_bytes = _smpp.GetMessageBytes(smsMessage.Body.Text.Value, data.DataCoding);
data.ShortMessageBytes = text_bytes;
Steve
Re: Polish Characters Encoding
I ask as with the settings above for ISO88592 I am still not able to send Polish characters.
Steve
Steve
Re: Polish Characters Encoding
Hi Steve,
Does mobile phone support ISO88592?
Please ask SMSC again if they ever had success with Polish characters. Possible they convert text before sending to mobile phone.
With code above library should send 0xF3 for ó symbol in Latin1. We can make sure if you send me trace file.
Does mobile phone support ISO88592?
Please ask SMSC again if they ever had success with Polish characters. Possible they convert text before sending to mobile phone.
With code above library should send 0xF3 for ó symbol in Latin1. We can make sure if you send me trace file.