Entity Framework C # Insertar problemas de codificación de datos en ruso
Estoy usando un modelo EDM en mi proyecto.
Cuando inserto palabras en ruso en la base de datos a través de una solicitud posterior, recibo??????
Controlador
[Authorize]
[HttpPost]
public string DescEdit(FormCollection formValues)
{
var CurrentUserPhoto = User.Identity.Name;
string x = Request.Form["id"];
Int64 id = Convert.ToInt64(x);
photos upPhotoDesc = photosRepository.GetPhotosById(id, CurrentUserPhoto);
upPhotoDesc.description = Request.Form["value"];
photosRepository.Save();
return Request.Form["value"];
}
En la base de datos, todos los caracteres están configurados en utf-8 En el contenido de la página de diseño, el tipo enc es utf-8Código de la base de datos:
CREATE TABLE `photos` (
`id` bigint(255) NOT NULL AUTO_INCREMENT,
`done` tinyint(1) NOT NULL DEFAULT '0',
`imgsmall` varchar(255) NOT NULL DEFAULT '',
`imgcrop` varchar(255) NOT NULL DEFAULT '',
`imgmiddle` varchar(255) NOT NULL DEFAULT '',
`imgbig` varchar(255) NOT NULL DEFAULT '',
`full_size` varchar(255) NOT NULL DEFAULT '',
`description` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`permission` tinyint(1) NOT NULL DEFAULT '0',
`userid` int(11) NOT NULL DEFAULT '0',
`userlogin` varchar(255) NOT NULL DEFAULT '',
`rating` smallint(5) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `indx_photos_1` (`id`,`userlogin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;