Htmlunit,提交帖子时编码错误

时间:2013-11-28 11:53:32

标签: htmlunit

美好的一天! 请发送消息到论坛。 发送数据时发送 enter image description here enter image description here 添加到标题字符集,它没有帮助 可能是什么问题?

WebClient webClient = new WebClient(BrowserVersion.CHROME);
page = webClient.getPage(urlPage);
HtmlForm formEditPost = page.getFormByName("postform");

HtmlTextInput subjectInput = formEditPost.getInputByName("subject");
subjectInput.setText("заголовок");

HtmlTextArea messageElement = formEditPost.getTextAreaByName("message");
messageElement.setText("сообщение");

HtmlSubmitInput sendMessage = formEditPost.getInputByName("post");
page = sendMessage.click();

0 个答案:

没有答案