Page displays as gibberish: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(moved from Download shows as gibberish) |
SteveChapel (talk | contribs) (→Related: add reference to bug report about doing MIME type sniffing on text/plain UTF-8 files) |
||
Line 14: | Line 14: | ||
* [[Page downloads instead of displays]] | * [[Page downloads instead of displays]] | ||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=261263 Bug 261263] — validate charset (esp. UTF-8) of text/plain downloads (first N bytes) before accepting as text/plain | |||
[[Category:Page display]] | [[Category:Page display]] |
Revision as of 16:19, 10 March 2006
If you are trying to download or view a page from a site and instead it shows as gibberish/garbled text/garbage or includes HTML code, it's most likely the result of a misconfigured server.
For users
- Contact the webmaster of the site and tell them about the issue. This is very important so that not only you can download/view the file properly, but others can too.
- Instead of clicking on the download/view link, right-click on it, pick "Save Link As", give it an appropriate name and extension, then open it locally.
- Alternately, open the gibberish file, then choose "File -> Save Page As", give it an appropriate name and extension, then open it locally.
For webmasters
Read MIME types.
Related
- Page downloads instead of displays
- Bug 261263 — validate charset (esp. UTF-8) of text/plain downloads (first N bytes) before accepting as text/plain