Php is converted to ASCII and js is converted back.

Source: Internet
Author: User
Php is converted to ASCII, and js is being converted back, so there is a problem... I mainly want to do it. it is not a simple string in the middle, that is, if the data is captured during transmission, I do not know what the data is .. the character is displayed on the client... what I want now is to convert each character into ascii and send it to the client in php to convert it into ASCII. then JavaScript is being converted back, and a problem occurs...
I mainly want to do it. it is not a simple string in the middle, that is, if the data is captured during transmission, I do not know what the data is .. the character is displayed on the client...
What I want now is to convert each character into ascii and send it to the client. then js will convert all ascii characters back in a loop, but this will cause a problem similar to garbled code /... if you can use url encoding before converting to asciil, but the database is relatively large, it won't work when decodeURL on the js side ....
Well, by the way, does. js have a byte Array? I used the client to use as3 to encrypt the binary data for transmission ....
Thank you ..

------ Solution --------------------
Http://phpjs.org/functions/base64_decode/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.