Garbled code problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:48
Original
1086 people have browsed it

ENCTYPE="multipart/form-data"
Because it transmits binary and the Chinese name of the file is garbled, how can I solve it?


Reply to the discussion (solution)

You may have sent the wrong version, this is beyond the capabilities of css.

Encode in js and send to the background, such as: encodeURI(encodeURI(url)), and then decode it

As long as the server can receive the correct binary data, it can always be solved there

Put a hidden field on the page, use js to get the file name and store it in the hidden field, and get the file name through the hidden field in the background

Are you saying that the file name obtained in the background is wrong (garbled code)?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template