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

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sun May 2 09:44:00 EDT 2010


Dmitry Simonchik <dima at simonchik.net> writes:
> 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.

What is your OSs locale?  As of 6.12.1, GHC defaults to doing IO using
the system's locale, which means you might be doubly encoding the String.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list