std.net.curl get webpage asia font issue
    Sam Hu 
    samhudotsamhu at gmail.com
       
    Wed Jun  6 23:57:24 PDT 2012
    
    
  
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
    
    
More information about the Digitalmars-d-learn
mailing list