diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/rhino/RhinoUtils.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/rhino/RhinoUtils.java index 2c26e364629..06aa5dfec46 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/rhino/RhinoUtils.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/rhino/RhinoUtils.java @@ -18,6 +18,7 @@ package org.jetbrains.kotlin.js.test.rhino; import com.google.common.collect.Sets; import com.intellij.openapi.util.io.FileUtil; +import com.intellij.openapi.vfs.CharsetToolkit; import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -106,7 +107,7 @@ public final class RhinoUtils { @NotNull Scriptable scope) throws Exception { String result; try { - result = FileUtil.loadFile(new File(inputFile), true); + result = FileUtil.loadFile(new File(inputFile), CharsetToolkit.UTF8, true); } catch (IOException e) { throw new RuntimeException(e);