[debugging display of foreign chars thomashartman1@gmail.com**20080929124258] hunk ./src/View.hs 16 + +-- debug problem with foreign character display +-- displays okay +t = do templates <- directoryGroup "templates" ; + let foreignRendered = renderTemplateGroup templates [] "foreigncharsInclude" + writeFile "output.html" $ renderTemplateGroup templates [("foreignRendered","meh"++foreignRendered)] "foreignchars" +-- displays wrong. problem with temlate include mechanism? +t2 = do + templates <- directoryGroup "templates" ; writeFile "output.html" $ tutlayout (RenderGlobals templates Nothing) [] "foreignchars" addfile ./templates/foreignchars.st hunk ./templates/foreignchars.st 1 - +Some foreign chars: ö ä ü +

Some foreign chars from an include: $ foreigncharsInclude() $ +

Some foreign chars from a rendered template: $ foreignRendered $ +

this works: addfile ./templates/foreigncharsInclude.st hunk ./templates/foreigncharsInclude.st 1 - +ö ä ü hunk ./templates/toc.st 14 + , ("/tutorial/foreignchars","foreign characters") hunk ./todo 13 - Edit job for non ascii characters breaks because of url encoding. + Edit job for non ascii characters breaks because of url encoding... or maybe it's not an + issue of needing url encoding, maybe it's an issue of locale.