Ajax.net ?? = Press ENTER

Source: Internet
Author: User

Recently, I developed a new version like chatting room, so I used ajax.net.

Then I found a problem.
when I have carriage return and images in the text, the subsequent text will be lost.

Sssssss
Ssssss
Sssssssss

< IMG SRC = "Http: // locahlhost/test.gif" >
Sssss

The result is:

Sssssss
Ssssss
Sssssssss

A lot of things are missing ..
Error. It is related to xx = after the first carriage return.Ssssss = sssssssssssssssssss = Ssssss = sssssssssssssssssssss = Ssssss =

SSS =
SSS =
SSS =
SSS =
SSS =
SSS =

It is easy to find out that \ r \ n in the carriage return C # (JS. I don't know if anyone has met me. the version I use is 5.6.3.4.

Solution: Use escape and Unescape server. urldecode

Related Article

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.