Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown Os Character Set 'cp720' , switching to the default character set 'latin1'

Tags:

java

mysql

When I run mysql -root -p db2 <mySuperMarketDB.sql and enter password then I get the following error:

Unknown Os Character Set 'cp720' , switching to the default character set 'latin1'

How can I fix that?

screenshot

like image 569
Khalid Nouh Avatar asked Nov 11 '15 20:11

Khalid Nouh


1 Answers

Change encoding to 1252

c:\chcp 1252

You can change code page permanantly as follows:

  1. Start -> Run -> regedit
  2. Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
  3. Add new String Value named: Autorun
  4. Change the value to 'chcp 1252'
like image 146
Mohammed Ali Avatar answered Sep 22 '22 00:09

Mohammed Ali