hi guys,
     I'm having this problem. sb is posting a string to my servlet.
if the string is in english, then everything works fine, I can get the
complete request string.
     but if the string contains japanese, chinese etc characters, then
the string I get is not complete. following is how I get the request
string
        int character;
        StringBuffer buffer = new StringBuffer();
        while (( character = request.getReader().read()) != -1 )
            buffer.append((char)character);
        String requestStr = buffer.toString();

I even tried :
        InputStreamReader isr
              = new InputStreamReader(request.getInputStream(), "UTF-8");
        if (isr.ready()) {
              int character;
              while ( (character = isr.read())!=-1 )
                        buffer.append((char)character);
        }
        String requestStr = buffer.toString();

can sb provide some information on this? I really appreciate it, I've
been struggling on this for days.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to