Diogenes Posted June 1, 2013 Share Posted June 1, 2013 (edited) The manual is encoded in ISO-8859-1, but your Apache server is configured to report it as UTF-8. $ telnet www.xenonauts.com 80Trying 216.18.20.7...Connected to www.xenonauts.com.Escape character is '^]'.GET /manual.html HTTP/1.1Host: www.xenonauts.comHTTP/1.1 200 OKDate: Sat, 01 Jun 2013 06:15:31 GMTServer: Apache/2.2.15 (CentOS)Last-Modified: Fri, 04 May 2012 13:29:59 GMTETag: "1803267-2954-4bf35eab8e3c0"Accept-Ranges: bytesContent-Length: 10580Connection: closeContent-Type: text/html; charset=UTF-8 This causes certain symbols to show up as '?' characters rather than the correct character. A quick workaround is to have users manually switch their browser's encoding for the page to ISO-8859-1. However, the better long term solution is to either change the file encoding to UTF-8, or have Apache correctly report the page as ISO-8859-1. Edited June 1, 2013 by Diogenes Quote Link to comment Share on other sites More sharing options...
Diogenes Posted June 1, 2013 Author Share Posted June 1, 2013 Since you're on CentOS, you can use the following iconv -f ISO-8859-1 -t UTF-8 filename.txt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.