I am trying to save chinese character into oracle DB using Nhibernate thru C# and the character saved always end up with some rubbish character.
I have done the following:
- Hbm mapping for the field is declared as type AnsiString and column type as sql-type="nvarchar". Have also tried String and nvarchar2 too.
- Database column data type is NVARCHAR2.
- Registry, environment variable and database charset NLS_LANG is set to UTF8.
I am able to read the chinese character input thru sql developer. But when I try to retrieve them (the character display correctly on screen) and attempt to save them back into the database without any changes, the data saved became "�����".
Anyone have any clue what have I miss out here?