<br><div><span class="gmail_quote">On 5/29/07, <b class="gmail_sendername">Jay McCarthy</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> It's not that difficult: bytes->string/utf-8 and family.<br><br>> The main problem is that if this is going to fail, I don't want to be<br>> the one blaimed for it. The server has no reason to look at these
<br>> values, so it irks me that it crashes by them. Furthermore, by moving<br>> the error in the servlet code, it can be caught more effectively and<br>> displayed to the user in an appropriate context.</blockquote>
<div><br>Perhaps an on-demand conversion can be the best of both worlds? i.e. the bindings are parsed as bytes, but bytes->string* is called with extract-binding, so the error can be trapped by servlet, but we don't need to write explicit conversions in servlet unless necessary (and might be possible to pass in encoding too to switch between utf-8/current-locale/latin-1).
<br><br>Just some more ideas... <br><br>yinso <br><br><br><br><br><br><br><br></div></div>