Problem stored values in Oracle


#1

If I enter in my website the value éI9Áq’ÃœnPt• the last character is
replaced on the database by ¿

The problem is I have to test automatically that the content on the
database is the same that the content it was entered on the webpage and
I don’t want to do something easy like replace characters.

Any idea how to solve it in a good way?

Thank you.


#2

I found the problem.
The language of the client and the server were different so I had to
change the value on the client side in regedit.

thank you.


#3

2008/10/17 Mario R. removed_email_address@domain.invalid:

I found the problem.
The language of the client and the server were different so I had to
change the value on the client side in regedit.

It’s probably also a good idea to check character encoding of the
database and / or column because that affects how comparisons are done
and what characters you can store inside.

Kind regards

robert


#4

How can I check the encoding, encode and decode?

Thanks.


#5

2008/10/20 Mario R. removed_email_address@domain.invalid:

How can I check the encoding, encode and decode?

If the column type is NVARCHAR2 it’s Unicode. For more info, please
check Oracle’s docs:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#i45685

http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm#NLSPG002

Cheers

robert


#6

Thanks a lot.