smartware 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,9 +60,7 @@ module Smartware
|
|
60
60
|
end
|
61
61
|
|
62
62
|
ussd_body = res[1].split(",")[1].gsub('"','') # Parse USSD message body
|
63
|
-
|
64
|
-
port.close
|
65
|
-
result
|
63
|
+
ussd_body.scan(/\w{4}/).map{|i| [i.hex].pack("U") }.join.strip # Encode USSD message from broken ucs2 to utf-8
|
66
64
|
rescue
|
67
65
|
@error = ERRORS["10"]
|
68
66
|
end
|
data/lib/smartware/version.rb
CHANGED