i have mysql databse and it's charset id latin1_swedish_ci and as example one column apear like that ( ?Œ????? ?‡???£?¤?¦???‡?? )
this is example of table
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 27, 2017 at 02:49 PM
-- Server version: 5.5.44-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `a`
--
-- --------------------------------------------------------
--
-- Table structure for table `block`
--
CREATE TABLE IF NOT EXISTS `block` (
`catid` int(12) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`rtl` int(12) NOT NULL DEFAULT '1',
`ratteb` int(11) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`showcat` int(11) NOT NULL DEFAULT '0',
`nostyle` varchar(255) NOT NULL,
`tab` varchar(255) NOT NULL,
`additional_locs` varchar(500) DEFAULT NULL,
PRIMARY KEY (`catid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=285 ;
--
-- Dumping data for table `block`
--
INSERT INTO `block` (`catid`, `name`, `rtl`, `ratteb`, `comment`, `showcat`, `nostyle`, `tab`, `additional_locs`) VALUES
(198, '???â€،?†?آ£?‰ ?آ£?â€?????‰', 1, 18, '', 2, '', '', NULL),
(2, '?â€،???ث†???‹', 2, 1, '', 2, '', '', NULL),
(3, '?????â€،?? ?â€،???’?آ¦?â€،?â€ک ?â€،???آ£???آ¦?â€،?إ’???آ?آ¤', 1, 8, '', 2, '', '', NULL);
i know how to change the charset but when i change it to uft8 the current data did not changed. i want to know is it possible to repair the old data to correct one?
thanks
UPDATE:
the charset in php is windows-1256