Re: insert in dB string whit 8bit caracter
Posted by: Fernando Gonzalez Sanchez
Date: July 15, 2013 04:04PM

Which character set has the table you are using?

For example, the following sql will create a UTF-16 table
CREATE TABLE `actor` (
`actor_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`first_name` varchar(45) NOT NULL,
`last_name` varchar(45) NOT NULL,
`last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf16

The character set in MySql tables must match the encoding used in .NET.

Options: ReplyQuote


Subject
Written By
Posted
Re: insert in dB string whit 8bit caracter
July 15, 2013 04:04PM


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.