First I added the "--encoding"-Switch to the java command line, because the Wikitext (UTF-8) was interpreted as ISO-8859-1 and looked awful. Then I found out that Umlauts (äöü) weren't rendered but instead they were replaced by small rectangles.
This is because Java selects the Character set according to system locale. My server uses "C"-Locale (-> US-ASCII), and I wanted to keep it that way. But I still wanted ditaa to render Umlauts correctly, so I added the "putenv" part.
Note: Maybe the Patch will only apply with "patch --ignore-whitespace"...
First I added the "--encoding"-Switch to the java command line, because the Wikitext (UTF-8) was interpreted as ISO-8859-1 and looked awful. Then I found out that Umlauts (äöü) weren't rendered but instead they were replaced by small rectangles.
This is because Java selects the Character set according to system locale. My server uses "C"-Locale (-> US-ASCII), and I wanted to keep it that way. But I still wanted ditaa to render Umlauts correctly, so I added the "putenv" part.
Note: Maybe the Patch will only apply with "patch --ignore-whitespace"...