|
From: J <iha...@ya...> - 2011-08-02 18:37:24
|
How do you know the characters are wrong? If you are using print to a Windows DOS prompt, it's a console issue, nothing to do with HTMLUNIT. Try sending the output to a SWING Text area, mysql or use Linux with a UTF8 supported console. -J http://www.julespotvin.com ________________________________ From: Tamás Kende <ken...@gm...> To: htm...@li... Sent: Tuesday, August 2, 2011 4:58 AM Subject: [Htmlunit-user] Problem with unicode in URL of getPage Hi all, when I open a URL with a unicode character, the response page will have question mark instead of the special char. I tried with: WebClient.getPage("http://www.google.com/search?hl=to&source=hp&q=ॐ") the url of the returned page will be: http://www.google.com/search?hl=to&source=hp&q=? so the would not be any search result. Any idea what is the problem? I tried to debug it and it seems to me the encoding was UTF-8 for the response and for the request. Thanks Tamas ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |