Greeting!

The document on this website provide an example on how to get webpage information by std.net.curl.It is quite straightforward:

[code]
import std.net.curl, std.stdio;

void main(){

// Return a string containing the content specified by an URL
string content = get("dlang.org");

writefln("%s\n",content);

readln;
}
[/code]

When I change get("dlang.org") to get("yahoo.com"),everything goes fine;but when I change to get("yahoo.com.cn"),a runtime error said bad gbk encoding bla...

So my very simple question is how to retrieve information from a webpage which could possibily contains asia font (like Chinese font)?

Thanks for your help in advance.

Regards,
Sam

Reply via email to