Re: [Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-16 Thread Eugene Dzhurinsky
On Sun, May 16, 2010 at 06:55:33PM +0200, Daniel Fischer wrote: > Is there any problem compiling from source on FreeBSD? Well, good question :) After I tried to find some sources, I realized that there are http://www.haskell.org/ghc/download_ghc_6_12_2.html#freebsd -- Eugene N Dzhurinsky pg

Re: [Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-16 Thread Daniel Fischer
On Sunday 16 May 2010 18:13:30, Eugene Dzhurinsky wrote: > On Sun, May 16, 2010 at 06:56:58PM +0300, Roman Cheplyaka wrote: > > I assume you are using GHC < 6.12. The trouble is in conversion done > > by putStrLn. Use one from System.IO.UTF8. > > > > Or try to upgrade to GHC 6.12 which respects the

Re: [Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-16 Thread Eugene Dzhurinsky
On Sun, May 16, 2010 at 06:56:58PM +0300, Roman Cheplyaka wrote: > I assume you are using GHC < 6.12. The trouble is in conversion done by > putStrLn. Use one from System.IO.UTF8. > > Or try to upgrade to GHC 6.12 which respects the locale settings. Hello, Roman! Thank you very much for the hint

Re: [Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-16 Thread Roman Cheplyaka
* Eugene Dzhurinsky [2010-05-16 18:42:08+0300] > Hello all! > > Can somebody please explain wha am I doing in wrong way? > > [snip] > > I am getting the output: > > === > 1) 345 =K=G5 <>4=> 1...@0bl :=86:8 2 2845 FB2? > > 2) :0:>9 5A

[Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-16 Thread Eugene Dzhurinsky
Hello all! Can somebody please explain wha am I doing in wrong way? === module UrlEncode where import System import Codec.Binary.UTF8.String as SU import Codec.Binary.Url as U import Data.Maybe main :: IO () main = do args <- getAr