J
javadev
I have a problem saving Arabic text entered through a JSP into the
Oracle database.
The NLS_LANG parameter for the database is AMERICAN_AMERICA.AL32UTF8.
Do I need to change this value to something else?
I have set the character encoding on my JSPs to UTF-8 as well as set
the charset to UTF-8.
<%@page contentType="text/html; charset=utf-8; language=java" %>
<%@ page encoding="UTF-8" %>
request.setCharacterEncoding("UTF-8");
Despite all this, when I enter Arabic text in the JSP page and submit
it, the text stored in the database is garbled. But if I try inserting
Arabic text directly in the database (i.e. not through JSP) it gets
stored fine.
Any ideas on what could be causing the problem and how I can solve
it?
Any help will be greatly appreciated.
Thanks
Swetha
Oracle database.
The NLS_LANG parameter for the database is AMERICAN_AMERICA.AL32UTF8.
Do I need to change this value to something else?
I have set the character encoding on my JSPs to UTF-8 as well as set
the charset to UTF-8.
<%@page contentType="text/html; charset=utf-8; language=java" %>
<%@ page encoding="UTF-8" %>
request.setCharacterEncoding("UTF-8");
Despite all this, when I enter Arabic text in the JSP page and submit
it, the text stored in the database is garbled. But if I try inserting
Arabic text directly in the database (i.e. not through JSP) it gets
stored fine.
Any ideas on what could be causing the problem and how I can solve
it?
Any help will be greatly appreciated.
Thanks
Swetha