A tag download word document garbled problem

<a href="word/temp.doc"><a>

the word document is placed under the project folder, and it is normal to open it locally. Garbled code appears after downloading using href, as shown in the following figure. Even if you try to change the code, what is going on?

Dec.22,2021

if it is a HTML page, write code:
< meta charset= "utf-8" >
if it is CSS style, write code:
@ charset "utf-8";

or you can try this:
download


it is recommended that you download the document using ajax.

Menu