How can i solve character encoding problem in BrowserField? 开发者_如何学PythonSome of UTF-8 characters (like 'ş', 'ç'...) appear as '?' character.
The following is a very good Solution
Browserfield browserField = new BrowserField();
browserField.requestContent(PATH);
browserField.displayContent(byte,"text/html; charset=utf-8", "http://localhost");
I think this might solve your problem
browserField.requestContent(localFilePath);
browserField.displayContent(responseData,"text/html; charset=utf-8", "http://localhost");
精彩评论