Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
i18n test documents are in UTF-8. tests fail if default platform enco…
Browse files Browse the repository at this point in the history
…ding is US-ASCII (Greek tests shows 'nl' instead of 'el'). Force UTF-8 decoding. [#10 state:resolved]
  • Loading branch information
Robert Newson committed Apr 2, 2009
1 parent a12f22c commit 9b60c1c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -82,7 +82,7 @@ public void testPerformance() throws Exception {

private void assertLanguage(final String file, final String expectedLanguage) throws Exception {
final InputStream in = LanguageIdentifier.class.getClassLoader().getResourceAsStream(file);
final String txt = IOUtils.toString(in);
final String txt = IOUtils.toString(in, "UTF-8");
in.close();
assertThat(LanguageIdentifier.identifyLanguage(txt), is(expectedLanguage));
}
Expand Down

0 comments on commit 9b60c1c

Please sign in to comment.