https://bz.apache.org/bugzilla/show_bug.cgi?id=59664
Bug ID: 59664 Summary: BufferReader return fuzzied when use https transfer Unicode char Product: Tomcat 7 Version: 7.0.69 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P2 Component: Servlet & JSP API Assignee: dev@tomcat.apache.org Reporter: else.liuj...@huawei.com The questions same with Bug 53717,but i think the class BufferReader should be improve. OS:Win7 SP1 Tomcat:7.0.69 (Win7 and Suse11) JDK:1.8.0_65-b17 I code a win32 program and use winhttp5.1 API,to send HTTPs request to Tomcat,the Body is Unicode content. On Tomcat,JSP use BufferedReader to get it The problem is: The first times to do "read(cbuf,0,1024);",it return 0. 0 means the stream is ended. Because the first batch data is only 1 Byte,but Unicode need 2 bytes to encode. it seems the same with Bug 53717. That means BufferedReader can not used actually Because when I coding JSP,i don't know how the Body will be split. I not know the protocol is HTTPs or HTTP i think the return of BufferedReader.read() should append a new enumeration when character lacked. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org