Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [content-encoding]

The tag has no usage guidance.

4
votes
4answers
4k views

Can file encoding change when FTP is used?

I'm developing a web application which downloads a number of web pages using PHP curl. It then uses diff to compare the files as they change each day. I reported a problem a few weeks back where ...
8
votes
3answers
902 views

Do characters encoded as HTML entities affect SEO?

We have a website made in asp.net with razor engine. The razor engine encodes the content from source/database. So, for example, the letter ö becomes ö if I look at the source code in the ...
1
vote
1answer
46 views

Accept-Encoding: lzf - Browser compatibility list?

Per the title, I'm looking for a browser capability list for Accept-Encoding: lzf - I'd like to use lzf encoding but I'm not which browsers support it and couldn't find a list. Thanks in advance
3
votes
2answers
77 views

What is the true filename on my server?

I have created a pdf under the name André.pdf on my server. However, I am not sure if this is the actual filename. I first assumed André.pdf is the actual filename because I can access it through ...
2
votes
1answer
65 views

After change to new software stack, Chinese pages require setting encoding in browser

We changed to a new server with a completely upgraded software stack, including apache 2.4 and php 5.6.9. We have a page in Simplified Chinese. On our old server (apache 2.2, php 5.3.5), the pages ...
0
votes
1answer
544 views

Append encoding information to HTTP response headers

I have an old web application (not maintained anymore) of which a small part is still needed; this is displayed in iframes. Unfortunately, the old application uses ISO-8859-1 encoding (which it doesn'...
1
vote
2answers
92 views

Global UTF-encoding, the right way

I'm curious, as to what is the right way to have UTF-8 encoding on all web files All my files (incl. CSS and JS) are made and saved in UTF-8 encoding In PHP, I set the char-set on top of the main ...
2
votes
1answer
2k views

advantages and disadvantages of base64 image strings

I discovered that you can covert images into base64 strings and use those string within img tags and css like this: <img alt="" src="data:image/png;base64,iVBORw0KGgoAhEUgAAA ... FTkSuQmCC" /> ...
1
vote
1answer
138 views

Encoding fails whatever I try

I am trying to set my site's encoding to UTF-8 but I fail. Environment: Ubuntu Desktop 13.04, Apache 2.2, PHP+FPM. Added a .htacces: AddDefaultCharset UTF-8 Meta: file -bi * output: inode/directory; ...
0
votes
3answers
780 views

How UTF-8 represents more than 256 characters and when to use UTF-16?

We all know what character encoding is. Like the simple ASCII 7 bit used for normal 128 characters representing and UTF-8 for representing 256 characters. I have 2 questions: Some people saying UTF-...
8
votes
4answers
8k views

How to tell the Browser the character encoding of a HTML website regardless of Server Content-Type Header?

I have a HTML page that correctly (the encoding of the physical on disk matches it) announces it's Content-Type: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> &...
5
votes
3answers
286 views

What encoding do most users prefer to have?

Is there any site, chart, or raw data that shows how much of user have used Unicode (UTF-8) or Western (ISO-8859-1) or Chinese and so. Or provide rough data of what is used in major number of sites. ...
3
votes
1answer
2k views

Apache show file index as utf-8

I'm on a shared hosting which runs Apache on a Windows server. I am running Linux and I have uploaded some files that should be accessible directly via a public URL (that is known only by a few people)...
1
vote
2answers
2k views

Default encoding vs. content-type specified encoding

We have a website (www.semanticdesigns.com) that delivers a default encoding of ISO-8859-1. The pages are written in, guess what, ASCII mostly with some ISO-8859-1 characters. We have a few example ...
1
vote
1answer
317 views

PhpMyAdmin - Changing charset

How may I change the database/Tables/Attributes charset using PhpMyAdmin (No SQL statement, only hand-and-mouse actions) ? I only see the option for the Collation (inter-classement).
1
vote
3answers
523 views

CMS text encoding and common browser decoding; recent change?

I'm managing a CMS-based website. The primary language of the CMS is English. Our content is mostly in English, but user postings are sometimes in other languages. The supporting mySQL database of ...
2
votes
2answers
118 views

Should I store address in encrypted form?

What are the general rules relating to address fields and others. I only store password in encrypted form, the rest are not. Email is also used during login. Can someone give me a suggestion related ...
14
votes
1answer
23k views

Character set not specified in HTTP headers error

When testing this page with Page Speed, I get the a Specify a character set error: The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP ...
1
vote
1answer
235 views

Word docs opened/downloaded via IE cannot determine correct encoding when they contain embedd images

This problem only rears its ugly head when opening/receiving using a version of Internet Explorer. Firefox, Safari and Chrome all work perfectly. When a Word doc that contains embedded graphics (like ...
3
votes
2answers
316 views

Is using HTML entities (for language-specific characters) in UTF-8 necessary?

As in the subject-line. Saw the situation the other day on a page which felt weird to me. Except for markup-delimiting characters such as pointy brackets or the ampersand, escaping, say, German ...
4
votes
1answer
756 views

IIS XML encoding seems to be wrong

We are moving our web application from Apache 2.0 to IIS 7. Everyhing is fine with UTF-8 encoding, but just one thing. There's a flash movie in the page that reads an xml content (dynamically ...
12
votes
3answers
2k views

Why use HTML entities instead of just putting Unicode characters in HTML?

Let's say I want to put a non-bland character in an HTML file; for instance, '→'. Is there any reason why I should enter it as '&rarr;' instead of just putting '→' in the HTML file? Assume my HTML ...
8
votes
1answer
976 views

Why would I choose UTF-8 over ISO 8859-1 as the content encoding for my site?

Assume that the site is still in it's design phases so there's no initial work to pick one over the other from the start.
9
votes
3answers
295 views

Proper use of Content-Encoding

I've heard it suggested that using setting a page's Content-Encoding to zip or gzip will drive down load times and reduce bandwidth. Is this worth implementing for the average site or only sites with ...