Re: Content-length and UTF-8

2007-06-26 Thread Svilen Ivanov
Thierry, Thank you for the quick response - I'll try it right away! Keep up the good work! Regards, Svi 2007/6/27, Thierry Boileau <[EMAIL PROTECTED]>: Hello Svilen, good analysis! This problem has been solved a fews days ago (24/05/2007), you can check the svn repository or download the las

Re: Content-length and UTF-8

2007-06-26 Thread Thierry Boileau
Hello Svilen, good analysis! This problem has been solved a fews days ago (24/05/2007), you can check the svn repository or download the last release: http://www.restlet.org/downloads/ Thanks a lot for using and promoting the Restlet! Best regards, Thierry Boileau I think I found the proble

Re: Content-length and UTF-8

2007-06-26 Thread Svilen Ivanov
I think I found the problem after digging in the source code. If I use StringRespresnetation this way: result = new StringRepresentation(res, MediaType.TEXT_HTML); result.setMediaType(MediaType.TEXT_HTML); result.setCharacterSet(CharacterSet.UTF_8); It doesn't work - because the protected method

Content-length and UTF-8

2007-06-26 Thread Svilen Ivanov
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 leng