cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject RE: Content-length
Date Mon, 24 Jan 2000 17:33:39 GMT
On Mon, 24 Jan 2000, Michael French wrote:

> > -----Original Message-----
> > From: Nicolás Lichtmaier [mailto:nick@debian.org]
> > Sent: Sunday, January 23, 2000 12:25 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: Content-length
> > 
> > . . . 
> > It would be a matter of sending the string.length();. 
> > This could be done now... is there any reason this is not
> > being done?
> 
> I think it would require a little more calculation than 
> simply the String.length(), doesn't the byte length depend 
> on the character encoding ?

Okay, I guess this should be

string.getBytes().length;

or

string.getBytes(encoding).length;

when we get to be that cool, anyway. Do we have access to the preferred
encoding at this stage?

- donald


Mime
View raw message