aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-colorizer
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-06 10:33:20 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-06 11:32:02 +0100
commitdacd73d365b9e144ecf9259dd17e3a8dc9072fe3 (patch)
tree734c8cfadfcca8d1b4a704717ea92fb744a10d5c /sonar-colorizer
parent638787991514e6e254a72dc57ae47a414b95d85a (diff)
downloadsonarqube-dacd73d365b9e144ecf9259dd17e3a8dc9072fe3.tar.gz
sonarqube-dacd73d365b9e144ecf9259dd17e3a8dc9072fe3.zip
Fix quality flaws
Diffstat (limited to 'sonar-colorizer')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
index e55dc91718e..35f1d896d34 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
@@ -21,6 +21,7 @@ package org.sonar.colorizer;
import com.google.common.io.ByteStreams;
import com.google.common.io.Closeables;
+import org.apache.commons.io.Charsets;
import org.sonar.channel.CodeReader;
import java.io.IOException;
@@ -98,7 +99,7 @@ public class HtmlDecorator extends Tokenizer {
InputStream input = null;
try {
input = HtmlRenderer.class.getResourceAsStream(CSS_PATH);
- return new String(ByteStreams.toByteArray(input));
+ return new String(ByteStreams.toByteArray(input), Charsets.UTF_8);
} catch (IOException e) {
throw new SynhtaxHighlightingException("SonarQube Colorizer CSS file not found: " + CSS_PATH, e);