In PHP, like this

<?php

$hex =
"0A2A0A700A1C0A3E0A2C00200A1A0A410A230A3E0A3500200A590A2C0A300A3E0A0200200A320A0800200057006800610074007300410070007000200A280A700A2C0A30002D0039003000340031003600380032003000390039002D00200A240A4700200A2E0A480A380A1C00200A150A300A4B";

$bin = pack("H*", $hex);


$utf8 = iconv("UTF-16BE", "UTF-8", $bin);



echo $utf8;


echo "\n";


On Thu, Dec 29, 2016 at 11:13 AM, Robin C <ro...@zincron.co.in> wrote:

> Hi,
> we are using kannel in linux platform. We are getting unicode at the back
> end like the one below:
>
> 0A2A0A700A1C0A3E0A2C00200A1A0A410A230A3E0A3500200A590A2C0A30
> 0A3E0A0200200A320A080020005700680061007400730041007000700020
> 0A280A700A2C0A30002D0039003000340031003600380032003000390039
> 002D00200A240A4700200A2E0A480A380A1C00200A150A300A4B.
>
> How can i convert it to human readable language?
>
> On Wed, Nov 23, 2016 at 4:02 PM, Rene Kluwen <rene.klu...@chimit.nl>
> wrote:
>
>> Depending on the platform you are using for your backend.
>> But suppose it's php, you can do it with:
>>
>> http://www.php.net/manual/en/function.hex2bin.php
>>
>> == Rene
>>
>> ------ Origineel bericht ------
>> Van: "Robin C" <ro...@zincron.co.in>
>> Aan: "Rene Kluwen" <rene.klu...@chimit.nl>
>> Cc: "kannel users@kannel.org" <users@kannel.org>
>> Verzonden: 22-11-2016 8:58:31
>> Onderwerp: Re: Re[2]: Unicode At back end
>>
>> how to unhex it? via command line or using any site?
>>
>> On Tue, Nov 22, 2016 at 1:27 PM, Rene Kluwen <rene.klu...@chimit.nl>
>> wrote:
>>
>>> Just "unhex" the string of numbers.
>>>
>>> ------ Origineel bericht ------
>>> Van: "Robin C" <ro...@zincron.co.in>
>>> Aan: "kannel users@kannel.org" <users@kannel.org>
>>> Verzonden: 22-11-2016 6:54:58
>>> Onderwerp: Re: Unicode At back end
>>>
>>> Hi,
>>>
>>> Can Anybody help me in this issue?
>>>
>>> On Fri, Nov 18, 2016 at 12:28 PM, Robin C <ro...@zincron.co.in> wrote:
>>>
>>>> Hi all,
>>>>
>>>> When we send unicode sms we get the message at the backend as a series
>>>> of numbers. How can we convert it back to unicode or text file?
>>>>
>>>> --
>>>>
>>>>    *Thanks & Regards,*
>>>>
>>>>
>>>>
>>>>       Robin C
>>>>
>>>>      Linux System Administrator
>>>>
>>>>
>>>>
>>>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>>>> Development, Web & Graphic Designing.*
>>>>
>>>>
>>>> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
>>>> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>>>>
>>>> *Corporate Office : S**urabhi ,TC 24/614, Door No.64, First floor *
>>>>
>>>> *Elankam Nagar , Thycaud, *
>>>>
>>>> *Thiruvananthapuram - 695014, , Kerala, India*
>>>>
>>>>
>>>> *Mobile: +919544861010 <+91%2095448%2061010> *| Phone:  0471 650 0414
>>>> | Raise Your Ticket: zincron-ticketing.com
>>>>
>>>>
>>>> Connect with us @ Facebook
>>>> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>>>>  | LinkedIn
>>>> <http://www.linkedin.com/pub/zin-cron-i-technology-resources-pl/69/498/b0a>
>>>>
>>>> Disclaimer:  This message contains confidential information and is
>>>> intended only for the individual named.  If you are not the named addressee
>>>> you should not disseminate, distribute or copy this e-mail.  Please notify
>>>> the sender immediately by e-mail if you have received this e-mail by
>>>> mistake and delete this e-mail from your system.  E-mail transmission
>>>> cannot be guaranteed to be secure or error-free as information could be
>>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>>>> contain viruses.  The sender therefore does not accept liability for any
>>>> errors or omissions in the contents of this message, which arise as a
>>>> result of e-mail transmission.  If verification is required please request
>>>> a hard-copy version.
>>>>
>>>> *7* Switch off as you go |*q *Recycle always | P Print only if
>>>> absolutely necessary
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>    *Thanks & Regards,*
>>>
>>>
>>>
>>>       Robin C
>>>
>>>      Linux System Administrator
>>>
>>>
>>>
>>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>>> Development, Web & Graphic Designing.*
>>>
>>>
>>> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
>>> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>>>
>>> *Corporate Office : S**urabhi ,TC 24/614, Door No.64, First floor *
>>>
>>> *Elankam Nagar , Thycaud, *
>>>
>>> *Thiruvananthapuram - 695014, , Kerala, India*
>>>
>>>
>>> *Mobile: +919544861010 <+91%2095448%2061010> *| Phone:  0471 650 0414
>>> | Raise Your Ticket: zincron-ticketing.com
>>>
>>>
>>> Connect with us @ Facebook
>>> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>>>  | LinkedIn
>>> <http://www.linkedin.com/pub/zin-cron-i-technology-resources-pl/69/498/b0a>
>>>
>>> Disclaimer:  This message contains confidential information and is
>>> intended only for the individual named.  If you are not the named addressee
>>> you should not disseminate, distribute or copy this e-mail.  Please notify
>>> the sender immediately by e-mail if you have received this e-mail by
>>> mistake and delete this e-mail from your system.  E-mail transmission
>>> cannot be guaranteed to be secure or error-free as information could be
>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>>> contain viruses.  The sender therefore does not accept liability for any
>>> errors or omissions in the contents of this message, which arise as a
>>> result of e-mail transmission.  If verification is required please request
>>> a hard-copy version.
>>>
>>> *7* Switch off as you go |*q *Recycle always | P Print only if
>>> absolutely necessary
>>>
>>>
>>
>>
>> --
>>
>>    *Thanks & Regards,*
>>
>>
>>
>>       Robin C
>>
>>      Linux System Administrator
>>
>>
>>
>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>> Development, Web & Graphic Designing.*
>>
>>
>> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
>> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>>
>> *Corporate Office : S**urabhi ,TC 24/614, Door No.64, First floor *
>>
>> *Elankam Nagar , Thycaud, *
>>
>> *Thiruvananthapuram - 695014, , Kerala, India*
>>
>>
>> *Mobile: +919544861010 <+91%2095448%2061010> *| Phone:  0471 650 0414  |
>> Raise Your Ticket: zincron-ticketing.com
>>
>>
>> Connect with us @ Facebook
>> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>>  | LinkedIn
>> <http://www.linkedin.com/pub/zin-cron-i-technology-resources-pl/69/498/b0a>
>>
>> Disclaimer:  This message contains confidential information and is
>> intended only for the individual named.  If you are not the named addressee
>> you should not disseminate, distribute or copy this e-mail.  Please notify
>> the sender immediately by e-mail if you have received this e-mail by
>> mistake and delete this e-mail from your system.  E-mail transmission
>> cannot be guaranteed to be secure or error-free as information could be
>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>> contain viruses.  The sender therefore does not accept liability for any
>> errors or omissions in the contents of this message, which arise as a
>> result of e-mail transmission.  If verification is required please request
>> a hard-copy version.
>>
>> *7* Switch off as you go |*q *Recycle always | P Print only if
>> absolutely necessary
>>
>>
>
>
> --
>
>    *Thanks & Regards,*
>
>
>
>       Robin C
>
>      Linux System Administrator
>
>
>
> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
> Development, Web & Graphic Designing.*
>
>
> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>
> *Corporate Office : S**urabhi ,TC 24/614, Door No.64, First floor *
>
> *Elankam Nagar , Thycaud, *
>
> *Thiruvananthapuram - 695014, , Kerala, India*
>
>
> *Mobile: +919544861010 <+91%2095448%2061010> *| Phone:  0471 650 0414  |
> Raise Your Ticket: zincron-ticketing.com
>
>
> Connect with us @ Facebook
> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>  | LinkedIn
> <http://www.linkedin.com/pub/zin-cron-i-technology-resources-pl/69/498/b0a>
>
> Disclaimer:  This message contains confidential information and is
> intended only for the individual named.  If you are not the named addressee
> you should not disseminate, distribute or copy this e-mail.  Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.  E-mail transmission
> cannot be guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses.  The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.  If verification is required please request
> a hard-copy version.
>
> *7* Switch off as you go |*q *Recycle always | P Print only if absolutely
> necessary
>

Reply via email to