Hello All:
An application sends this byte array to the gateway(Kannel 1.4.1):
byte[] original = {77, 67, 65, 83, 72, 32, 33, 216, 21, 199, 102,
84, 199, 230, 2, 164, 183, 47, 130, 157, 125, 96, 186, 213, 42, 94,
79, 203, 210, 50, 76, 232, 174, 76, 49, 146, 187, 217, 34, 27, 18,
135, 197, 64, 82, 197, 66, 65, 115, 213, 23, 77, 153, 34, 243, 58,
231, 220, 192, 11, 120, 15, 9, 148, 53, 215, 126, 2, 110, 38, 11,
135, 190, 176, 107, 155, 231, 2, 176, 159, 86, 132, 128, 45, 91,
144, 98, 63, 115, 110, 228, 37, 200, 194, 38, 219, 135, 41, 233,
138, 117, 246, 29, 211, 6, 213, 178, 216, 79, 70, 0, 45, 187, 223,
189, 110, 99, 228, 108, 196, 33, 72, 125, 64, 135, 218, 202, 228,
216, 170, 62, 80, 139, 128, 0, 0, 0, 0, 0, 0};
Kannel translates the following to the downstream application via http(%b):
MCASH+!%D8%15%C7fT%C7%E6%02%A4%B7%2F%1A%1A%7D%60%BA%D5*%5EO%CB%D22L
%E8%AEL1%1A%BB%D9%22%1B%12%1A%C5%40R%C5BAs%D5%17M%1A%22%F3%3A%E7%DC
%C0%0Bx%0F%09%1A5%D7~%02n%26%0B%1A%BE%B0k%1A%E7%02%B0%1AV%1A%1A-%5B
%1Ab%3Fsn%E4%25%C8%C2%26%DB%1A)%E9%1Au%F6%1D%D3%06%D5%B2%D8OF%00-%BB
%DF%BDnc%E4l%C4!H%7D%40%1A%DA%CA%E4%D8%AA%3EP%1A%1A%00%00%00%00%00%00
And then do URL decoding with using WINDOWS-1252 charset:
byte[] data = {77, 67, 65, 83, 72, 32, 33, 216, 21, 199, 102, 84,
199, 230, 2, 164, 183, 47, 26, 26, 125, 96, 186, 213, 42, 94, 79,
203, 210, 50, 76, 232, 174, 76, 49, 26, 187, 217, 34, 27, 18, 26,
197, 64, 82, 197, 66, 65, 115, 213, 23, 77, 26, 34, 243, 58, 231,
220, 192, 11, 120, 15, 9, 26, 53, 215, 126, 2, 110, 38, 11, 26, 190,
176, 107, 26, 231, 2, 176, 26, 86, 26, 26, 45, 91, 26, 98, 63, 115,
110, 228, 37, 200, 194, 38, 219, 26, 41, 233, 26, 117, 246, 29, 211,
6, 213, 178, 216, 79, 70, 0, 45, 187, 223, 189, 110, 99, 228, 108,
196, 33, 72, 125, 64, 26, 218, 202, 228, 216, 170, 62, 80, 26, 26,
0, 0, 0, 0, 0, 0};
This translation is wrong for all byte values between 128 - 159. All bytes
within this range are translated as 26.
The question is: How do we make Kannel translate this bytes correctly to the
downstream application?
Thank you in advance.
Malik
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping