Message from discussion
Non-English Tag
Received: by 10.68.135.106 with SMTP id pr10mr120022pbb.3.1334668093133;
Tue, 17 Apr 2012 06:08:13 -0700 (PDT)
X-BeenThere: hakyll@googlegroups.com
Received: by 10.68.222.193 with SMTP id qo1ls21602821pbc.9.gmail; Tue, 17 Apr
2012 06:08:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.216.104 with SMTP id op8mr2972646pbc.1.1334668092916; Tue,
17 Apr 2012 06:08:12 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
fre...@gmail.com designates internal as permitted sender)
smtp.mail=fre...@gmail.com; dkim=pass
header...@gmail.com
Received: by t2g2000pbg.googlegroups.com with HTTP; Tue, 17 Apr 2012 06:08:12
-0700 (PDT)
Date: Tue, 17 Apr 2012 06:08:12 -0700 (PDT)
In-Reply-To: <88cb3935-1299-4957-a203-d7948209bc8f@lf20g2000pbb.googlegroups.com>
References: <e9654fd9-e9c0-47bb-a90b-55a28d925b94@u15g2000vby.googlegroups.com>
<BANLkTi=8q38OH92KfKhvNwDX9LJN09hBQQ@mail.gmail.com> <88cb3935-1299-4957-a203-d7948209bc8f@lf20g2000pbb.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML,
like Gecko) Chrome/18.0.1025.151 Safari/535.19,gzip(gfe)
Message-ID: <164b6d11-22eb-4580-b25c-a0fcf1910364@t2g2000pbg.googlegroups.com>
Subject: Re: Non-English Tag
From: Haisheng Wu <fre...@gmail.com>
To: hakyll <hakyll@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
This is a actually a old bug regarding to ghc which has been fixed
ghc-7.2.x.
Since I'm still using ghc-7.0.2, I need a workaround which not
supposed to be into hakyll.
http://stackoverflow.com/questions/10191171/prelude-writefile-with-a-chines=
e-file-name
-Simon
On Apr 16, 10:40=A0pm, Haisheng Wu <fre...@gmail.com> wrote:
> Hello Jasper,
> =A0 You could find source code at :https://github.com/freizl/dive-into-ha=
skell/tree/master/web/hakyll/ha....
>
> =A0 I'm tested at platform: ubuntu 10.11, ghc-7.0.3, hakyll-3.2.6.1
> =A0 You could find near line 48 in order to reproduce the issue.
>
> =A0 I'm trying to dig the cause. If you would like to help it out, that
> will be great!
>
> =A0 Thanks.
> -Simon
>
> On Apr 17 2011, 2:38=A0pm, Jasper Van der Jeugt <jasper...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I quickly tried to reproduce it here, the tag files *did* seem to get
> > written, however, the preview server could not find them. Anyway, I
> > suppose this depends a lot on the used file system... could you give
> > us some more details?
>
> > * what are the tags?
> > * what filenames *does* hakyll generate?
> > * if possible, could you provide the source code?
>
> > Cheers,
> > Jasper
>
> > On Sun, Apr 17, 2011 at 4:34 AM, Haisheng Wu <fre...@gmail.com> wrote:
>
> > > What if I neednon-Englishtags, for instance Chinese tags, what I
> > > should do to make it work?
> > > I'm a haskell newbie..
>
> > > I took a quick try, seems the only problem is that while auto
> > > generating html file for each tag,
> > > it did not put the Chinese characters as file name.
> > > While I manually fix the generated html file name, it works well.
>
> > > Any ideas?
>