Convert your hindi message text in hex : php way


Very recently i have a requirement to send the SMS in hindi to my customer. The mobile vendor need it to be converted in the HEX encoding before sending them through the http POST. It was easy to do in C# but i need to spent some time do the same in PHP. The inbuild function dechex was not sufficent. I have got the code from here : (all credit should go here) , but the function was not encoding the number and english letter in the HEX. So i have made some changes to make it work. Now this function can be used to hex all unicode chareter.In my case hindi mixed with english or numbers.

View original post


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s