[Bese-devel] Parsing UTF-8 mime content

Aycan iRiCAN aycan.irican at core.gen.tr
Sat Apr 8 15:04:13 UTC 2006


Hi,

I had some problems with utf-8 encoded forms because we're using non
ascii characters. I just looked at src/backend/common.lisp and
realized that when a form has been submitted, ucw constructs a
character array and parse the content byte by byte. This is a problem
when we use UTF-8 content. So I changed the array to unsigned-byte and
then added raw bytes. In termination-callback, I converted the array
to a proper string using octets-to-string.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf8-mime-content.patch
Type: text/x-patch
Size: 72867 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060408/9be7309d/attachment.bin>
-------------- next part --------------

It's not the perfect solution but it works for me.

Best Regards,

-- 
Aycan iRiCAN
C0R3 Computer Security Group
http://www.core.gen.tr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060408/9be7309d/attachment.sig>


More information about the bese-devel mailing list