Accessing character set information
Posted by: Nope nope
Date: September 06, 2022 11:06PM

Looking through the variable inspector I can see that a MySqlDataReader has access to the character set a certain field is (utf8, latin..., it's a property called CharacterSetIndex inside MySqlField) but I don't see any direct way of accessing any of the MySqlFields through the MySqlDataReader, just the converted data.

Is there any way to access the character set that doesn't require reflection? The encoding of the original data is important as it has to be re-encoded to be sent through a network socket and sometimes specific encodings are required for the data to be properly parsed on the other side of the socket.

Thanks in advance.

Options: ReplyQuote


Subject
Written By
Posted
Accessing character set information
September 06, 2022 11:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.