We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21e77e commit c3cc0dcCopy full SHA for c3cc0dc
hoplite-core/src/main/kotlin/com/sksamuel/hoplite/parsers/PropsParser.kt
@@ -6,13 +6,15 @@ import com.sksamuel.hoplite.PropertySource
6
import com.sksamuel.hoplite.PropertySourceContext
7
import com.sksamuel.hoplite.fp.valid
8
import java.io.InputStream
9
+import java.io.InputStreamReader
10
+import java.nio.charset.Charset
11
import java.util.Properties
12
13
class PropsParser : Parser {
14
15
override fun load(input: InputStream, source: String): Node {
16
val props = Properties()
- props.load(input)
17
+ props.load(InputStreamReader(input, Charset.forName("UTF-8")))
18
return props.toNode(source)
19
}
20
0 commit comments