网站编辑器上传的doc文件在前台打开是乱码也不提示下载
网站后台编辑器上传的doc文档,文件保存在文件夹,我测试的时候放在本机、虚拟空间打开都正常,但是放在客户的内网服务器上打开后也不提示下载,直接打开就是个乱码,我右键文件目标另存为的时候文件的后缀名却是xxx.htm文件,直接在浏览器地址栏复制地址打开也是乱码。不知道这个问题是怎么回事,是我服务器没配置好,还是我程序代码有问题,程序页面的头我也加了header("Content-Type:text/html; charset=utf-8")都不起作用,哪位知道这是怎么回事呢?
回复讨论(解决方案)
这种情况一般是因为没有服务器不支持的文件类型造成的,你可以考虑在Apache中做设置可以彻底解决你的问题。
服务器我也安装了word2003了
word 文档是二进制文件,你还 header("Content-Type:text/html; charset=utf-8") 声明为文本
浏览器不出乱码才怪呢
word 文档是二进制文件,你还 header("Content-Type:text/html; charset=utf-8") 声明为文本
浏览器不出乱码才怪呢
我就是不声明也是乱码啊
除了 IE 可以打开 word 文档(绝非乱码)外,都应该出现下载
至于你是如何让他在浏览器中显示的,你没说我也不知道
如果不通过php下载,直接打开文件,可是乱码?
除了 IE 可以打开 word 文档(绝非乱码)外,都应该出现下载
至于你是如何让他在浏览器中显示的,你没说我也不知道
我就是在后台编辑器上传附件那块上传的word文件,源文件保存在指定文件夹,前台打开一篇文章后就自动显示这个word文件名称,但是点击这个word文件的时候打开也不提示下载,直接就是乱码。
用的什么浏览器?
用的什么浏览器?
ie浏览器,最低版本都是ie6
ie 就不可能出现这种情况,即便是第一次出现下载框时你选择了打开并勾选了下次不再询问
那么也就是在浏览器中打开他了
如果是乱码的话就一定是你的 word 文件损坏了,或是你在这个过程中做了什么
ie 就不可能出现这种情况,即便是第一次出现下载框时你选择了打开并勾选了下次不再询问
那么也就是在浏览器中打开他了
如果是乱码的话就一定是你的 word 文件损坏了,或是你在这个过程中做了什么
word文档我在服务器文件夹是可以打开看的,至于过程中我还真没有做什么,就只是把文件通过编辑器附件上传,然后提交就完事了,在前台打开文章开的时候就这样了。
有可能是这个服务器有问题,你换成windows2008服务器试下吧

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What should I do if Google Chrome prompts that the content of this tab is being shared? When we use Google Chrome to open a new tab, we sometimes encounter a prompt that the content of this tab is being shared. So what is going on? Let this site provide users with a detailed introduction to the problem of Google Chrome prompting that the content of this tab is being shared. Google Chrome prompts that the content of this tab is being shared. Solution: 1. Open Google Chrome. You can see three dots in the upper right corner of the browser "Customize and control Google Chrome". Click the icon with the mouse to change the icon. 2. After clicking, the menu window of Google Chrome will pop up below, and the mouse will move to "More Tools"

Hongguo Short Play is not only a platform for watching short plays, but also a treasure trove of rich content, including novels and other exciting content. This is undoubtedly a huge surprise for many users who love reading. However, many users still don’t know how to download and watch these novels in Hongguo Short Play. In the following, the editor of this website will provide you with detailed downloading steps. I hope it can help everyone in need. Partners. How to download and watch the Hongguo short play? The answer: [Hongguo short play] - [Audio book] - [Article] - [Download]. Specific steps: 1. First open the Hongguo Short Drama software, enter the homepage and click the [Listen to Books] button at the top of the page; 2. Then on the novel page we can see a lot of article content, here

When you log in to someone else's steam account on your computer, and that other person's account happens to have wallpaper software, steam will automatically download the wallpapers subscribed to the other person's account after switching back to your own account. Users can solve this problem by turning off steam cloud synchronization. What to do if wallpaperengine downloads other people's wallpapers after logging into another account 1. Log in to your own steam account, find cloud synchronization in settings, and turn off steam cloud synchronization. 2. Log in to someone else's Steam account you logged in before, open the Wallpaper Creative Workshop, find the subscription content, and then cancel all subscriptions. (In case you cannot find the wallpaper in the future, you can collect it first and then cancel the subscription) 3. Switch back to your own steam

Recently, many users have been asking the editor, how to download links starting with 115://? If you want to download links starting with 115://, you need to use the 115 browser. After you download the 115 browser, let's take a look at the download tutorial compiled by the editor below. Introduction to how to download links starting with 115:// 1. Log in to 115.com, download and install the 115 browser. 2. Enter: chrome://extensions/ in the 115 browser address bar, enter the extension center, search for Tampermonkey, and install the corresponding plug-in. 3. Enter in the address bar of 115 browser: Grease Monkey Script: https://greasyfork.org/en/

Many users need to download files when using Quark Network Disk, but we want to save them locally, so how to set this up? Let this site introduce to users in detail how to save files downloaded from Quark Network Disk back to the local computer. How to save files downloaded from Quark network disk back to your local computer 1. Open Quark, log in to your account, and click the list icon. 2. After clicking the icon, select the network disk. 3. After entering Quark Network Disk, click My Files. 4. After entering My Files, select the file you want to download and click the three-dot icon. 5. Check the file you want to download and click Download.

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;
