[wplug] Chinese console fonts?

Jonathan Billings billings at negate.org
Fri Aug 15 07:45:11 EDT 2008


On Aug 15, 2008, at 7:10 AM, Zach Uram wrote:

> I downloaded a chinese webpage onto my remote server using wget (where
> I host my webserver - running Debian 4.0) and when I view it the
> Chinese characters have been replaced with ASCII gibberish. Yet the
> original Chinese page displays fine in Firefox on my local machine
> (Ubuntu 6.06) and I can even see the Chinese characters in my local
> console in Ubuntu when I load the file in emacs. So what packages do I
> need to install in Debian etch which will alow me to view (and thus
> correctly download and save) Chinese webpages? I do not want X fonts
> since the server is only accessible via ssh and I don't run X on it.


I don't think it has anything to do with additional software, but with  
how the web page is being served.  For example:

$ curl -s --head http://www.google.com|grep ^Content-Type
Content-Type: text/html; charset=ISO-8859-1

$ curl -s --head http://www.google.cn|grep ^Content-Type
Content-Type: text/html; charset=GB2312

Your web server might not be serving the GB2312 charset (or whatever  
the <meta> line at the beginning of the HTML file says it is).  Look  
into http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addcharset
--
Jonathan Billings <billings at negate.org>




More information about the wplug mailing list