UTF-8 decoding error

Christian Maeder maeder at tzi.de
Thu Sep 21 08:58:24 EDT 2006


Duncan Coutts schrieb:
> There is iconv. It could be used as a pre-processor with ghc's -F -pgmF
> -optF flags.

NB: -F is missing in the Flag reference

A simple script for the pgmF command

#!/bin/sh
iconv -f l1 -t utf-8 $2 > $3

worked for me, thanks!

> Sorry there isn't a better solution at the moment. You could petition
> for an {-# ENCODING ISO-8859-1 #-} pragma as mentioned in that ticket.

This seems unnecessary now.

Christian



More information about the Glasgow-haskell-users mailing list