Symfony2.8从phpmyadmin数据库读取数据

时间:2018-09-28 23:38:11

标签: mysql utf-8 phpmyadmin symfony-2.8 php-7.2

如果我使用utf8_unicode_ci作为列,我会在HTML页面中找到它

  

منحالمركبالجامعيبماليزيالدراسةماجستيرتطويرالحلولفيجامعة   نوتنغام= >> ??? ?????? ??????? ????????? ?????? ??????? ?????? ??????   ?? ?????? ???????

     

Arménie= >>Arménie

如果我更改为BLOB并且没有排序规则,则效果很好! 我在控制器中所做的就是这样:

$this->doctrine = $this->getContainer()->get('doctrine');
$this->em = $this->doctrine->getManager();

$typess = $this->doctrine->getRepository('SonataDemoBundle:TypeGrant');
$types = $typess->findAll();

有关信息,我将utf8使用元标记

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

最近我做了一些更改,例如更新表:

update minha_specialite set  name_fr =  CONVERT(CONVERT(CONVERT(name_fr USING latin1) USING binary) USING utf8);

有关更多信息,这是我的网站的示例:http://mina7.net/country/140,armenie

0 个答案:

没有答案