Reputation: 224
How can i solve character encoding problem in BrowserField? Some of UTF-8 characters (like 'ş', 'ç'...) appear as '?' character.
Upvotes: 1
Views: 805
Reputation:
The following is a very good Solution
Browserfield browserField = new BrowserField();
browserField.requestContent(PATH);
browserField.displayContent(byte,"text/html; charset=utf-8", "http://localhost");
Upvotes: 2
Reputation: 929
I think this might solve your problem
browserField.requestContent(localFilePath);
browserField.displayContent(responseData,"text/html; charset=utf-8", "http://localhost");
Upvotes: 1