Home All Groups Group Topic Archive Search About

Encoding about GetString method of DataReader

Author
29 Mar 2006 11:15 AM
Zhou Peng
Can anybody tell me how SqlDataReader and OracleDataReader process the 
encoding of contents from database when it's GetString(or 
GetSqlString,GetOracleString) method is called?

I have been annoyed on this issue for several days and searched many 
materials but no help.

--
Zhou Peng

Author
2 Apr 2006 9:55 AM
Zhou Peng
In terms of Oracle as database, I do know what OCI will do when reading 
data from Oracle server.
OCI on the client will do a proper byte conversion according to NLS_LANG 
setting on data stream from server.
But my question is what will .NET framework do when convert the converted 
bytes to Unicoce memory strings?
Is it has any relationship with Windows default code page?

Hope anyone can help me on this annoying issue.

On Wed, 29 Mar 2006 20:15:16 +0900, Zhou Peng <zhph***@gmail.com> wrote:

>
> Can anybody tell me how SqlDataReader and OracleDataReader process the 
> encoding of contents from database when it's GetString(or 
> GetSqlString,GetOracleString) method is called?
>
> I have been annoyed on this issue for several days and searched many 
> materials but no help.
>



--
Tony Zhou

AddThis Social Bookmark Button