DBARrez,
The database character set is only part of the "character-set equation". Another part is the client-machine character set.
To determine where your challenges lie, I suggest the following steps:[ul][li]Identify the ASCII code for each of the characters you wish to check (e.g., "A" = 67, "a" = 97, "B" = 68, et cetera). [I don't know what the proper ASCII values are for your character sub-set, "?, ?, ?, Ž, Š."][/li][li]From a SQL prompt, determine the results of these queries:
Code:
select ascii('?') from dual;
select ascii('?') from dual;
select ascii('?') from dual;
select ascii('Ž') from dual;
select ascii('Š') from dual;
Also,
select chr(<ASCII value for '?'>) from dual;
select chr(<ASCII value for '?'>) from dual;
select chr(<ASCII value for '?'>) from dual;
select chr(<ASCII value for 'Ž'>) from dual;
select chr(<ASCII value for 'Š'>) from dual;
[/li][li]Determine if the results of the above queries match your expectations.[/li][li]Determine the database storage behavior: INSERT (into a test table) the ASCII values for the sample characters:
Code:
INSERT into test_table values (chr(<ASCII value for '?'>));
INSERT into test_table values (chr(<ASCII value for '?'>));
INSERT into test_table values (chr(<ASCII value for '?'>));
INSERT into test_table values (chr(<ASCII value for 'Ž'>));
INSERT into test_table values (chr(<ASCII value for 'Š'>));
[/li][li]Query to see if the database has altered those values using this query:
Code:
select <column_name>, chr(<column_name>) ASCII_Val from <table_name>;
[/li][li]If the display of the ASCII_VAL column contents differs from the ASCII numeric values that you INSERTED, then, yes, the database character set is causing problems. If the ASCII numeric values are correct, but the display of the character translation is incorrect, then your client-machine character set has problems.[/li][/ul]
Let us know your findings.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services:
www.dasages.com]
“Beware of those that seek to protect you from harm or risk. The cost will be your freedoms and your liberty.”