Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

UTF-8 encoding not working on my page, help pls.

  • No replies
  • 11 have this problem
  • 1 view
more options

I've created a simple HTML webpage for a friend in hungarian, english and russian language. All three works fine in all browsers, except the russian version in firefox. http://www.profipack.hu/rus/index_rus.html

I've googled for a long time but nothing did help. Firefox seems to unable to translate my header (it's like empty) but i don't know why. I used UTF-8 without BOM encoding for my html file, and i've given the encoding details in the head.

The strange is, that even in Firefox the hungarian and english version looks fine, i don't know what's the problem, so if you can help me, please.

I've created a simple HTML webpage for a friend in hungarian, english and russian language. All three works fine in all browsers, except the russian version in firefox. http://www.profipack.hu/rus/index_rus.html I've googled for a long time but nothing did help. Firefox seems to unable to translate my header (it's like empty) but i don't know why. I used UTF-8 without BOM encoding for my html file, and i've given the encoding details in the head. The strange is, that even in Firefox the hungarian and english version looks fine, i don't know what's the problem, so if you can help me, please.

All Replies (5)

more options

I'm not a web developer (and this support site isn't really handling support for web developer questions like this), but I tried the following:

  1. Open the page in Chrome
  2. Viewed Source
  3. Copied the entire contents
  4. Pasted in my text editor (EditPad)
  5. Saved as UTF-8, Unix line endings.
  6. Opened that file in Firefox

The page then displays properly. This tells me that there is likely something wrong with the way you're saving the html file. What application are you using? What are the file endings used (e.g. CR, CR/LF, or LF)? My advice is, try to re-save your file and see if it works better then. Because the resulting file I get from following my steps above works fine in all browsers I've tried in.

more options

GET /rus/index_rus.html HTTP/1.1 Host: www.profipack.hu

HTTP/1.1 200 OK Content-Type: text/html; charset=ISO-8859-2

The server is telling the browser to use ISO-8859-2 (Central Europe) encoding, and the browser obeys. The server header takes precedence over the meta tag in the HTML file.

Users can manually select a different encoding, but the issue should be fixed on the server.

more options

Hi!

Thanks for the advice, but nothing happened. The problem is, on my pc the pages works fine even in firefox, the problem appears only on the file copied to ftp. Is it possible, that the server has something to deal with this?

more options

Hm, i have only ftp access to the server, and none of the files on it seems helpful to me (.screenrc, .bashrc, .bash_profile, .bash_logout) So i'll contact the admin for further help. Thank you very much!

more options

The Russian file is saved as UTF-8, but as posted above is send by the server as ISO-8859-2.
If you load the page locally then there is no server used, so no interference there from a misleading content type.
Firefox will always use the encoding send by the server if that is send by the server and you can't override that with a BOM or meta tag in the HTML file.

You will have to save the Hungarian, English and Russian files as UTF-8 and configure the server to send HTML files as UTF-8 to make it work in Firefox.