2014-08-27 13:29 GMT+04:00 Mark Thomas <ma...@apache.org>: >> > > Bad news: The issue is that if there is a chance of UTF-8 in the header > then you can't simply split the header into individual cookies based on > the separator byte since you can't tell (without decoding to characters) > if a byte represents the separator or is part of a sequence of several > bytes representing some other character. >
You can. All separator bytes are 7-bit US-ASCII. BTW, There is also a feature in UTF-8 that you can split it into characters without actually decoding them. I mean "Character boundaries are easily found from anywhere in an octet stream." as said in "1. Introduction" of http://tools.ietf.org/html/rfc3629 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org