[Haskell-cafe] Problems with HStringTemplate UTF8 templates in ghc-6.12

Dmitry Simonchik dima at simonchik.net
Sun May 2 09:03:32 EDT 2010


Hi all, I need your help

I have something i can't understand with hstringtemplate. I'm using this
library in my project to render UTF-8 encoded templates. Everything was fine
when I were using ghc-6.10 and hstringtemplate-0.6.1

But recently I upgraded to ghc-6.12 and hstringtemplate-0.6.2 and the output
of my program now broken. I can see correctly only UTF8 values that I pass
to template from database. It seems that toString method produces not UTF-8
encoded string, because if i use Codec.Binary.UTF8.String.encodeString i get
correct output except for values from database.

Any ideas how to solve the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100502/a14a059d/attachment.html


More information about the Haskell-Cafe mailing list