US7ASCII - How to store and retrieve Brazilian Portuguese characters
Hi. The parameters bellow are from the database which I should connect to to run the application I am making :
PARAMETER VALUE
------------------------------ ----------------------------------------
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET US7ASCII
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.1.0.6.0
I can not change any database parameters, but I can change any session parameters values.
When I connect to the database and attempt to save a text like 'salvação', which have 2 special characters, I am not able to retrieve the same text on my SQL queries.
The table structure is like :
desc servico
Name Null Type
------------------------------ -------- --------------------------------------------------------------------------------------
SERVICO NOT NULL NUMBER(11)
DESCRICAO NOT NULL VARCHAR2(255)
Is there any session parameter I can set to get the correct text in a SQL command ? Should I use NVARCHAR2(255) instead of VARCHAR2(255) ? I have read a note on the Internet that NVARCHAR2 is deprecated, is that true ?
Thank you very much
Jayme.