Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread Wolfgang Jeltsch
Am Freitag, 10. Juli 2009 09:54 schrieb david48: Hello all, I made a small program for my factory and I wanted to try to document it using haddock. The thing is, the comments are in French and the resulting html pages are unreadable because the accentuated letters are mangled. It's not

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:37 PM, Wolfgang Jeltschg9ks1...@acme.softbase.org wrote: To my knowledge, Haddock only supports ASCII as input encoding. If you want to have characters outside ASCII, you have to escape them using something like #xA0;. Which would mean, while editing the code I'd have

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread Wolfgang Jeltsch
Am Freitag, 17. Juli 2009 16:43 schrieben Sie: On Fri, Jul 17, 2009 at 4:37 PM, Wolfgang Jeltschg9ks1...@acme.softbase.org wrote: To my knowledge, Haddock only supports ASCII as input encoding. If you want to have characters outside ASCII, you have to escape them using something like

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang Jeltschg9ks1...@acme.softbase.org wrote: Yes, it’s a pity. For me, it’s not such a big problem since I don’t write my Haddock comments in my native language (German) but in English. I only experience this problem because I use nice typography, i.e., “ ”

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:15 PM, david48dav.vire+hask...@gmail.com wrote: On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang GHC supports UTF-8 input, and Haddock uses GHC nowadays. So, in my opinion, Haddock should also support UTF-8 input. Do you want to file a feature request? Sure. I'm

[Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread david48
Hello all, I made a small program for my factory and I wanted to try to document it using haddock. The thing is, the comments are in French and the resulting html pages are unreadable because the accentuated letters are mangled. It's not acceptable to use HTML entities, as I'd like the comments

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread Magnus Therning
On Fri, Jul 10, 2009 at 8:54 AM, david48dav.vire+hask...@gmail.com wrote: Hello all, I made a small program for my factory and I wanted to try to document it using haddock. The thing is, the comments are in French and the resulting html pages are unreadable because the accentuated letters

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread Khudyakov Alexey
On Пятница 10 июля 2009 12:55:46 Magnus Therning wrote: Not that I have any hope of being able to answer your question, but I think it might be useful if you informed us where the characters are mangled. Is it when you view it in a browser, or when you open the Haddock-generated HTML files in

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread david48
On Fri, Jul 10, 2009 at 10:55 AM, Magnus Therningmag...@therning.org wrote: On Fri, Jul 10, 2009 at 8:54 AM, david48dav.vire+hask...@gmail.com wrote: Not that I have any hope of being able to answer your question, but I think it might be useful if you informed us _where_ the characters are

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread Thomas ten Cate
I ran a little experiment of my own, using a GHC HEAD build of a week or so ago. Here's a hex dump of my test source, so that we can see that it's really UTF-8. $ od -xc Test.hs 000 6f6d 7564 656c 4d20 6961 206e 6877 7265 m o d u l e M a i n w h e r