PHP converted to ASCII then JS in the conversion back, on the issue.
Source: Internet
Author: User
PHP converted to ASCII then JS in the conversion back, there is a problem ...
I mainly want to do, the middle is not a simple string, that is, if the data in the transmission process by what crawled, do not know what the data is. Then the client normally displays this character out ...
What I want to do now is to convert each character to ASCII to the client, and then JS in the loop will convert all ASCII back, but there is a similar garbled problem ... If it is possible to encode the URL before conversion to Asciil, but the database is relatively large, in the JS side decodeurl the time is not ....
Well, by the way. JS has a byte array this kind of thing? I used to AS3 the binary encryption of the data by the client to transmit ....
Thank you, sir.
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.