We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12c2e47 + 825f6cf commit 11476d1Copy full SHA for 11476d1
doc-tool/src/dotty/tools/dottydoc/staticsite/ResourceFinder.scala
@@ -9,8 +9,8 @@ trait ResourceFinder {
9
final case class ResourceNotFoundException(message: String) extends Exception(message)
10
11
protected def getResource(r: String): String =
12
- Option(getClass.getResourceAsStream(r)).map(scala.io.Source.fromInputStream)
+ Option(getClass.getResourceAsStream(r))
13
+ .map(scala.io.Source.fromInputStream(_)(scala.io.Codec.UTF8))
14
.map(_.mkString)
15
.getOrElse(throw ResourceNotFoundException(r))
-
16
}
0 commit comments