Just encode your app files to ANSI or UTF-8. You can use Notepad++ and convert them directly in ANSI or UTF-8.
________________________________ De : Rene Kluwen <[email protected]> À : 'Mohammad Ali Alfarra' <[email protected]>; 'spameden' <[email protected]> Cc : [email protected] Envoyé le : Mercredi 17 juillet 2013 19h34 Objet : RE: SMS with question mark "?" Try urlencoding it twice. So a question mark will look like %253F. From:users [mailto:[email protected]] On Behalf Of Mohammad Ali Alfarra Sent: woensdag 17 juli 2013 15:47 To: spameden Cc: [email protected] Subject: Re: SMS with question mark "?" yes I'm sure we use urlencode the ? also we use another special characters in the same message but it's complain about "?" and "=" We got this error on smsc logs. 2013-07-16 09:29:25 [21294] [41] DEBUG: new group created `smpp' 2013-07-16 09:29:25 [21294] [41] DEBUG: group=`smpp' key=`message_payload' value=`[QAR4]SONAR To unsub send STOP 00 to 00000###http://XXX.XXX.com:8080/sms/qadl.php' 2013-07-16 09:29:25 [21294] [41] ERROR: MDATA: Found '=' but not expected it end=-1 start=113 type=0. I changed some data on the above log to 0 or X. Sincerely -- Mohammad Ali Alfarra System Administrator (RHCSS, RHCE, LPI-2, LPI-1, MCITP, MCSE) Support Mob: +962797062851 Email: [email protected] On Wed, Jul 17, 2013 at 4:18 PM, spameden <[email protected]> wrote: are you sure you did urlencode '?' ? it should look like this (single ? sign): %3F 2013/7/17 Mohammad Ali Alfarra <[email protected]> Dears, Problem is: We're trying to send URL over SMS but the problem is that we use question mark "?" on the URL, so whenever we send an MT we got an ERROR on SMSC logs and the message will delivered to the client empty. Config: SMSC group = smsc smsc = smpp interface-version = 34 smsc-id = testoperator connect-allow-ip = 127.0.0.1 allowed-smsc-id = testoperator log-file = "/var/log/kannel1.5/smsc/testoperator_smsc.log" log-level = 0 host = X.X.X.X port = 10000 transceiver-mode = true smsc-username = "User" smsc-password = "Pass" system-type = "NULL" enquire-link-interval = 60 source-addr-ton = 5 source-addr-npi = 0 dest-addr-ton = 1 dest-addr-npi = 1 validityperiod = 1440 alt-charset = "ASCII" We have TLV for this SMSC connection: group = smpp-tlv name = message_payload #AS PER SMPP SPEC: tag = 0x0424 #AS PER SMPP SPEC: type = octetstring length = 65536 smsc-id = "testoperator" Logs: SMSC: 2013-07-11 10:06:16 [21294] [41] DEBUG: SMPP[qtelcgw]: Sending PDU: 2013-07-11 10:21:07 [21294] [41] DEBUG: SMPP PDU 0x6bef4c40 dump: 2013-07-11 10:21:07 [21294] [41] DEBUG: type_name: submit_sm 2013-07-11 10:21:07 [21294] [41] DEBUG: command_id: 4 = 0x00000004 2013-07-11 10:21:07 [21294] [41] DEBUG: command_status: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: sequence_number: 121883 = 0x0001dc1b 2013-07-11 10:21:07 [21294] [41] DEBUG: service_type: "XXXXX" 2013-07-11 10:21:07 [21294] [41] DEBUG: source_addr_ton: 5 = 0x00000005 2013-07-11 10:21:07 [21294] [41] DEBUG: source_addr_npi: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: source_addr: "XXXXX" 2013-07-11 10:21:07 [21294] [41] DEBUG: dest_addr_ton: 1 = 0x00000001 2013-07-11 10:21:07 [21294] [41] DEBUG: dest_addr_npi: 1 = 0x00000001 2013-07-11 10:21:07 [21294] [41] DEBUG: destination_addr: "XXXXXXXXXXX" 2013-07-11 10:21:07 [21294] [41] DEBUG: esm_class: 3 = 0x00000003 2013-07-11 10:21:07 [21294] [41] DEBUG: protocol_id: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: priority_flag: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: schedule_delivery_time: NULL 2013-07-11 10:21:07 [21294] [41] DEBUG: validity_period: "130712102107000+" 2013-07-11 10:21:07 [21294] [41] DEBUG: registered_delivery: 1 = 0x00000001 2013-07-11 10:21:07 [21294] [41] DEBUG: replace_if_present_flag: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: data_coding: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: sm_default_msg_id: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: sm_length: 0 = 0x00000000 2013-07-11 10:21:07 [21294] [41] DEBUG: short_message: "" 2013-07-11 10:21:07 [21294] [41] DEBUG: SMPP PDU dump ends. Thanks in advance. Sincerely -- Mohammad Ali Alfarra System Administrator (RHCSS, RHCE, LPI-2, LPI-1, MCITP, MCSE) Support Mob: +962797062851 Email: [email protected]
