Convert your hindi message text in hex : php way


devesh4blog

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 : http://tech.groups.yahoo.com/group/php-objects/message/8555 (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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s