Hi,

I'm building StringRepresentation containing non-English characters in
UTF-8 encoding. The problem is that the Content-Length header of the
response counts the "characters" in the string instead of "bytes". As
you know for non-English characters are represented by 2 bytes. This
makes the length shorter and the client truncates the response. I
tried with both curl tool and firefox browser.

If I manually set the representation content, it works fine - the
content is not truncated.

Do you guys have encountered the problem before? I googled around but
with no luck

Regards,
Svi

P.S. I'm going to present REST architectural style to Annual
Conference for Web Technologies in Bulgaria - WebTech '07
(http://www.wtconferences.com/2007/?q=node/14) and I'll use Restlet
application as demo application.

Reply via email to