Search invisible characters in mysql -
there columns in mysql table contain values such "sbeed pharmaceuticals åÊ" . 2 questions:
how prevent getting these characters getting table in first place ?
how find rows containing these characters ?
here table:
create table `drugs` ( `drug-id` int(10) unsigned not null auto_increment, `th-class` varchar(512) default null, `division` varchar(512) default null, `name` varchar(512) default null, `brand-name` varchar(64) default null, `pack` varchar(512) default null, `rx-type` varchar(16) default null, `pack-form` varchar(128) default null, `available-in` varchar(512) default null, `mrp` double default '-1', `mrp-per-unit` double default null, `manufacturer` varchar(512) default null, `schemes` text, `drug-status` varchar(64) default 'new', `created-by` varchar(512) default null, `created-at` datetime default current_timestamp, `approved-at` datetime default null, `approved-by` varchar(512) default null, `dosage` varchar(64) default null, `manufacturer-id` int(10) default null, primary key (`drug-id`), unique key `name` (`name`) ) engine=innodb default charset=latin1;
Comments
Post a Comment