\r
#### fixes \r
\r
+- Ensure that Welcome message is parsed using UTF-8 encoding (issue 74) \r
+- Activity page graph layout broken by Google (issue 73)\r
- Uppercase repositories not selectable in edit palettes (issue 71)\r
- Not all git notes were properly displayed on the commit page (issue 70)\r
- Activity page now displays all local branches (issue 65)\r
package com.gitblit.wicket.pages;\r
\r
import java.io.File;\r
-import java.io.FileReader;\r
+import java.io.FileInputStream;\r
import java.io.InputStream;\r
import java.io.InputStreamReader;\r
import java.text.MessageFormat;\r
import org.apache.wicket.PageParameters;\r
import org.apache.wicket.markup.html.basic.Label;\r
import org.apache.wicket.resource.ContextRelativeResource;\r
+import org.eclipse.jgit.lib.Constants;\r
\r
import com.gitblit.GitBlit;\r
import com.gitblit.Keys;\r
File file = new File(messageSource);\r
if (file.exists()) {\r
try {\r
- FileReader reader = new FileReader(file);\r
+ FileInputStream fis = new FileInputStream(file);\r
+ InputStreamReader reader = new InputStreamReader(fis,\r
+ Constants.CHARACTER_ENCODING);\r
message = MarkdownUtils.transformMarkdown(reader);\r
+ reader.close();\r
} catch (Throwable t) {\r
message = "Failed to read " + file;\r
warn(message, t);\r
try {\r
ContextRelativeResource res = WicketUtils.getResource(file);\r
InputStream is = res.getResourceStream().getInputStream();\r
- InputStreamReader reader = new InputStreamReader(is);\r
+ InputStreamReader reader = new InputStreamReader(is, Constants.CHARACTER_ENCODING);\r
message = MarkdownUtils.transformMarkdown(reader);\r
reader.close();\r
} catch (Throwable t) {\r