<font color="#888888">Luís, thanks for the answer!<br><br>The issue is connected with my recent experiment with creating CL bindings to the upcoming mongrel2 web-server.  And it arises only sometimes.<br><br> You can see the initial variant at </font><a href="http://github.com/vseloved/cl-mongrel2">http://github.com/vseloved/cl-mongrel2</a>.  <font color="#888888">If you are willing to dive in and spend some time, try to run the example code in </font><a href="http://github.com/vseloved/cl-mongrel2/blob/master/example.lisp">http://github.com/vseloved/cl-mongrel2/blob/master/example.lisp</a><br>

<br>It will also require you to install and run mongrel2 itself (see <a href="http://mongrel2.org/doc/tip/docs/manual/book.wiki">http://mongrel2.org/doc/tip/docs/manual/book.wiki</a> for details), which will in turn require to setup a working Python environment (if you don't have one already, obviously).  All the other instructions are in example.lisp.  If something is unclear, feel free to write me.<br>

<br>It's also worth mentioning, that I'm using babel-0.3.<br><br>Looking forward for the results,<br>Vsevolod<br><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 10:02 PM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com">luismbo@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Wed, Aug 4, 2010 at 3:07 PM, Vsevolod Dyomkin <<a href="mailto:vseloved@gmail.com">vseloved@gmail.com</a>> wrote:<br>


> Maybe, someone here can explain, why this 0-characters are not recognized as<br>
> proper utf-8 ones?<br>
<br>
</div>Seems to work for me. Can you come up with a short reproducible example?<br>
<br>
CL-USER> (defparameter *array* #(#\5 #\4 #\c #\6 #\7 #\5 #\5 #\b #\-<br>
<div class="im">#\9 #\6 #\2 #\8 #\- #\4 #\0 #\a #\4 #\- #\9 #\a #\2 #\d #\- #\c #\c<br>
#\8 #\2 #\a #\8 #\1 #\6 #\3 #\4 #\5 #\e #\  #\1 #\8 #\  #\/ #\h #\a<br>
#\n #\d #\l #\e #\r #\t #\e #\s #\t #\  #\2 #\6 #\0 #\Space #\{ #\"<br>
#\P #\A #\T #\H #\" #\Space #\" #\/ #\h #\a #\n #\d #\l #\e #\r #\t<br>
#\e #\s #\t #\" #\, #\" #\M #\E #\T #\H #\O #\D #\" #\Space #\" #\G<br>
#\E #\T #\" #\, #\" #\V #\E #\R #\S #\I #\O #\N #\" #\Space #\" #\H<br>
#\T #\T #\P #\/ #\1 #\. #\1 #\" #\, #\" #\U #\R #\I #\" #\Space #\"<br>
#\/ #\h #\a #\n #\d #\l #\e #\r #\t #\e #\s #\t #\" #\, #\" #\P #\A<br>
#\T #\T #\E #\R #\N #\" #\Space #\" #\/ #\h #\a #\n #\d #\l #\e #\r<br>
#\t #\e #\s #\t #\" #\, #\" #\A #\c #\c #\e #\p #\t #\" #\Space #\"<br>
#\* #\/ #\* #\" #\, #\" #\H #\o #\s #\t #\" #\Space #\" #\l #\o #\c<br>
#\a #\l #\h #\o #\s #\t #\Space #\6 #\7 #\6 #\7 #\" #\, #\" #\U #\s<br>
#\e #\r #\- #\A #\g #\e #\n #\t #\" #\Space #\" #\c #\u #\r #\l #\/<br>
#\7 #\. #\2 #\0 #\. #\0 #\  #\( #\i #\4 #\8 #\6 #\- #\p #\c #\- #\l<br>
#\i #\n #\u #\x #\- #\g #\n #\u #\) #\  #\l #\i #\b #\c #\u #\r #\l<br>
#\/ #\7 #\. #\2 #\0 #\. #\0 #\  #\O #\p #\e #\n #\S #\S #\L #\/ #\0<br>
#\. #\9 #\. #\8 #\n #\  #\z #\l #\i #\b #\/ #\1 #\. #\2 #\. #\3 #\.<br>
#\4 #\  #\l #\i #\b #\i #\d #\n #\/ #\1 #\. #\1 #\5 #\  #\l #\i #\b<br>
#\s #\s #\h #\2 #\/ #\1 #\. #\2 #\. #\4 #\" #\} #\, #\0 #\Space #\,<br>
</div>#\n #\S #\S #\L #\/ #\0 #\. #\Nul #\Nul))<br>
*ARRAY*<br>
CL-USER> (cffi:with-foreign-string (fs (coerce *array* 'string)<br>
:encoding :utf-8)<br>
           (cffi:foreign-string-to-lisp fs :encoding :utf-8))<br>
"54c6755b-9628-40a4-9a2d-cc82a816345e 18 /handlertest 260 {\"PATH\"<br>
\"/handlertest\",\"METHOD\" \"GET\",\"VERSION\" \"HTTP/1.1\",\"URI\"<br>
\"/handlertest\",\"PATTERN\" \"/handlertest\",\"Accept\"<br>
\"*/*\",\"Host\" \"localhost 6767\",\"User-Agent\" \"curl/7.20.0<br>
(i486-pc-linux-gnu) libcurl/7.20.0 OpenSSL/0.9.8n zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a><br>
libidn/1.15 libssh2/1.2.4\"},0 ,nSSL/0."<br>
328<br>
<br>
Thanks,<br>
<font color="#888888"><br>
--<br>
Luís Oliveira<br>
<a href="http://r42.eu/%7Eluis/" target="_blank">http://r42.eu/~luis/</a><br>
</font></blockquote></div><br>