‎2008 Jul 28 6:09 PM
Hello gurus,
This is my code.
Data: ls_histo(255).
ls_histo = 'Créé par ...'.
exec sql. "ORACLE
insert into SAPEDITION.ZMVS_CUSTOMER
X_HISTO values :ls_histo
endexec.
And this is my problem: In Oracle i saw : Cr¿¿ par...
Can you help me ?
In Oracle when i do :
SELECT * FROM sys.props$ WHERE name LIKE 'NLS%CHARACTERSET%';
i obtain this :
NAME
-
-
VALUE$
COMMENT$
NLS_CHARACTERSET
WE8MSWIN1252
Character set
NLS_NCHAR_CHARACTERSET
UTF8
NCHAR Character set
Best regards,
Thierry Chiret
Edited by: Thierry CHIRET on Jul 28, 2008 7:10 PM
‎2008 Jul 29 8:47 AM
Hi Thierry,
did you check the NLS_LANG setting on your client? It dictates to the database what characterset it should expect from the client for an appropriate conversion.
try
NLS_LANG =FRENCH_FRANCE.WE8MSWIN1252
NLS_LANG = LANGUAGE_TERRITORY.CHARACTERSET
where:
LANGUAGE specifies:
- language used for Oracle messages,
- day names and month names
TERRITORY specifies:
- monetary and numeric formats,
- territory and conventions for calculating week and day numbers
CHARACTERSET:
- controls the character set used by the client application
* or it matches your Windows code page
* or it set to UTF8 for an unicode application
‎2008 Jul 29 10:34 AM
Thanks for your response.
Where can i find the NLS_LANG parameter ?
I use the table DBCON for my connection and i don't know where are her client's parameters.
Best regards,
Thierry Chiret
‎2008 Jul 29 2:47 PM
> Thanks for your response.
>
> Where can i find the NLS_LANG parameter ?
>
> I use the table DBCON for my connection and i don't know where are her client's parameters.
>
>
> Best regards,
>
> Thierry Chiret
>In Oracle i saw : Cr¿¿ par...
It's an ORACLE client setting.
It's from where you start the application that showed the wrong characters.
Setting depends on the OS you use on the client.
i.e. if it's Windows: you would set it in the registry or in the environment variables.
The display of the data has nothing todo with the characters stored in the database.
If your database is UTF8 - fine.
Choose a NLS_LANG that can convert the characters display into french.
If you have not an UTF8 aware application you must give some clue to it how to handle
special characters you stored in the database. If your client application (i.e. SQLPLUS) uses ORACLE middleware you would do this with NLS_LANG.
yk
‎2008 Jul 29 6:02 PM
The issue was in the DBCON-CON_ENV to append :WE8MSWIN1252
Thanks
Best regards
Thierry Chiret
‎2009 Dec 14 9:46 AM
And how was the connection string will look completely?
thanks.
Roman