In fact it does - just tried it on UNICODE mysql/xwiki setup and the
cont length was correct - no truncation on a page that does get
truncated when using content.getLength().
If you wouldn't mind making that change in the repository, i would
save me having to patch every time I upgrade :) Thanks,
Matt
On Aug 31, 2005, at 7:33 PM, Ludovic Dubost wrote:
Yes.. that might do it..
Ludovic
Matthew Conway wrote:
>
> On Aug 31, 2005, at 4:31 PM, Ludovic Dubost wrote:
>
>
>>
>> How about calculating the real size for UTF-8 and having a
>> setting to set or not the content-length..
>>
>
> Actually, isn't the content length always going to be the number
> of bytes, regardless of what encoding is being used?
>
> content.getBytes().length