I have a web application developed by third parties running on CentOS consulting an Oracle database. The database is configured as follows:
NLS_LANGUAGE = BRAZILIAN PORTUGUESE
NLS_TERRITORY = BRAZIL
NLS_CHARACTERSET = WE8ISO8859P1
NLS_NCHAR_CHARACTERSET = AL16UTF16
Syntax of the CONVERT command:
CONVERT (string_expression, to_data_set [, from_data_set]);
example:
SELECT
CONVERT ('Ä Ê Í', 'US7ASCII', 'WE8ISO8859P1')
FROM
DUAL;
In my case, I'm trying to do as follows:
SELECT
CONVERT (expression, 'UTF8', 'WE8ISO8859P1')
FROM ...
But I can't find the correct combination of to_data_set and from_data_set to display the accented characters correctly with my query.
Any suggestion (including a different approach than using CONVERT command)?