duanhuan8983 2015-10-29 16:53
浏览 32

在php中的latin1_spanish_ci问题中显示坏字符

I have this database that I can't modify

CREATE TABLE `personas` (

  `extracto` text CHARACTER SET latin1 COLLATE latin1_spanish_ci NOT NULL,
  `lastname` text CHARACTER SET utf8 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

And I need to show in JSON in a PHP webservice but I get bad characters

I add mysql_query ("SET NAMES 'utf8'"); but the issue still appears.

extracto: "Solicitando al D.E,informe referente a saldos conciliados con las empresas prestadoras de servicios de publicidad y propaganda registrados por la Administración Central del municipio.-"

Thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?