setCharacterEncoding

Discussion in 'Java' started by neele, May 14, 2004.

  1. neele

    neele Guest

    Hello

    Any idea, anyone.. how to use simulate request.setCharacterEncoding("UTF8");
    for older servlet version ??? i think my servlet version is before 2.2

    thanks a lot !
     
    neele, May 14, 2004
    #1
    1. Advertising

  2. On Fri, 14 May 2004 15:24:46 +0800, neele wrote:

    > Any idea, anyone.. how to use simulate
    > request.setCharacterEncoding("UTF8");
    > for older servlet version ???


    ...errr. Tried?

    out.println("<meta http-equiv='CONTENT-TYPE' " +
    "content='text/html; charset=utf-8'>");

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
     
    Andrew Thompson, May 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page