I am having a problem in storing korean characters in MSSQL database using JSP. I had this problem previously on Thai characters, and somebody solved it for me by adding in this tag on the JSP page.
<%@ page pageEncoding="UTF-8"%>
And before I did any request.getparameter() , I just need to add in another tag:
By using this, it solved the Thai problem, the thai characters will be stored exactly into the database.
Now, it seems that I can't use this same solution for storing and displaying korean characters. Everything will be stored as ??????? (Questions marks)
BUT, it works if I store the characters in this formatl, ㅇㅁㅇㄻ
I'm not sure whether we can use UTF-8 for korean characters. When I used this tag:
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
Then it works, but storing this format into the db:ㅇㅁㅇㄻ
I want to store exactly the korean characters into the MSSQL, not in the format above. Could anybody give me some suggestions?