What must be done to ensure the safe and correct download of files with different character encodings?
- Encode files as ASCII
- Set the character encoding in the response header
- Use a fixed character encoding
- Use the default character encoding
To ensure the safe and correct download of files with different character encodings, set the character encoding in the response header using response.setCharacterEncoding().
Loading...
Related Quiz
- Which strategy involves adding more servers to handle increased load in a web application?
- How does Java's heap memory management differ from stack memory management?
- The CallableStatement method _________ is used to get the result set of a stored procedure.
- What enables servlets to handle requests asynchronously?
- How can you retrieve a servlet's initialization parameters in the init method?