Re: [Haskell-cafe] posting UTF8 data with Curl library

2010-05-06 Thread Eugene Dzhurinsky
On Wed, May 05, 2010 at 11:15:05PM +0200, Daniel Fischer wrote: > It's the same type, so you can encode it using Data.ByteString.UTF8 and > send it over the network as a plain old ByteString. > On the receiving end, you read it as a plain ByteString and then interpret > it as a utf-8 encoded Byte

Re: [Haskell-cafe] posting UTF8 data with Curl library

2010-05-05 Thread Daniel Fischer
On Wednesday 05 May 2010 23:05:10, Eugeny N Dzhurinsky wrote: > Hello! > > I need to submit data to HTTP server using UTF8 encoding. I found out > that libcurl for haskell can work with Data.ByteString - but it seems > not able to work with Data.ByteString.UTF8. > > Can you please advice, how do I

[Haskell-cafe] posting UTF8 data with Curl library

2010-05-05 Thread Eugeny N Dzhurinsky
Hello! I need to submit data to HTTP server using UTF8 encoding. I found out that libcurl for haskell can work with Data.ByteString - but it seems not able to work with Data.ByteString.UTF8. Can you please advice, how do I convert Data.ByteString.UTF8 into Data.ByteString and visa versa? Thank y