File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tray-util/src/main/scala/com/github/opengrabeso/loctio Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.github.opengrabeso.loctio
3
3
import java .awt .Desktop
4
4
import java .io .ByteArrayInputStream
5
5
import java .net .URL
6
+ import java .nio .charset .Charset
6
7
7
8
import org .xhtmlrenderer .simple .XHTMLPanel
8
9
import org .xhtmlrenderer .swing .NaiveUserAgent
@@ -28,7 +29,7 @@ class HtmlPanel(baseUri: String) extends Panel {
28
29
29
30
def html : String = throw new UnsupportedOperationException (" HTML document is write only" )
30
31
def html_= (text : String ): Unit = {
31
- val is = new ByteArrayInputStream (text.getBytes)
32
+ val is = new ByteArrayInputStream (text.getBytes( Charset .forName( " UTF-8 " )) )
32
33
val url = baseUri
33
34
peer.setDocument(is, url + " /" )
34
35
}
You can’t perform that action at this time.
0 commit comments