Send http with Unicode Any
- This topic has 4 replies, 4 voices, and was last updated 13 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Tagged: Danish æøå
Hi if i send sms from the web site (Encoding Type)unicode and select language any i can send danish (æøå). But if i want to send this with the API. I can’t get i working
Sending:
http://192.168.0.4:81/sendmsg?user=bn&passwd=xxxxxx&cat=1&enc=2&to=”11111111″&text=test-æ-ø-å
Hi Brian,
You may need to encode the characters if they are delivered via URL. See section 2.2 of RFC 1738:
http://www.ietf.org/rfc/rfc1738.txt
This may also be of use:
http://www.ozzu.com/website-design-forum/can-have-special-characters-url-names-t73983.html
http://www.w3schools.com/tags/ref_urlencode.asp
So, the following might work:
Hi Brian,
You need to convert the characters to the Unicode hex or decimal values and separate these values with semicolons.
For example, here are the hex values for “test-æ-ø-å”:
t = 0074
e = 0065
s = 0073
t = 0074
– = 002D
æ = 00E6
– = 002D
ø = 00D8
– = 002D
å = 00E5
So a Http Unicode Hex sendmsg request should be sent as:
You can find more information in the User Guide at the link below on page 89.
http://www.multitech.com/en_US/DOCUMENTS/Collateral/manuals/S000461C.pdf
Regards,
Bryon
Hej Bryon
There is a bug in the way the sms gateway translate danish ø
In php i use utf8_decode to get danish special char æ ø å
$message = utf8_decode($_POST);
æ Æ å Å is displayed fine
But small ø gives a blank
And big Ø gives a ¥ – yen
$message = str_replace(chr(248),’%F8′, $message);
Still gives blank instead of ø
Regards
Jan
Hi Jan,
We are aware of this problem, and are currently working on solving it. I will let you know when something is available.
Regards,
Bryon