Thanks for your help!
Tim
Test Code:
/**************************
import java.io.*;
import java.text.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestCharSet extends HttpServlet{
public void doGet
(HttpServletRequest request,HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html; charset=UTF-8");
/*
This works but don't understand what it would do?
Docs say:
Overrides the name of the character encoding
used in the body of this request.
*/
request.setCharacterEncoding("utf-8");
/*
This is what I really want to do.
I wish to set the encoding of the responded document
Docs say:
Sets the character encoding (MIME charset) of the response
being sent to the client, for example, to UTF-8.
This one sounds correct but I get the error:
TestCharSet.java [15:1] cannot resolve symbol
symbol : method setCharacterEncoding (java.lang.String)
location: interface javax.servlet.http.HttpServletResponse
response.setCharacterEncoding("utf-8");
*/
response.setCharacterEncoding("utf-8");
}
}
I believe I need to find a different solution.