Search invisible characters in mysql -


there columns in mysql table contain values such "sbeed pharmaceuticals åÊ" . 2 questions:

  1. how prevent getting these characters getting table in first place ?

  2. 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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -