welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 167 forks source link

Problem local database when pull #78

Closed dondia-lab closed 10 years ago

dondia-lab commented 10 years ago

Hi, I get the error: /.rvm/gems/ruby-2.0.0-p451@global/gems/wordmove-1.1.0/lib/wordmove/sql_adapter.rb:44:ingsub!': invalid byte sequence in US-ASCII (ArgumentError)`

delphaber commented 10 years ago

Hi

have you got any non ASCII char in your Movefile ?

Arkham commented 10 years ago

May be related to https://github.com/welaika/wordmove/pull/71 ?

dondia-lab commented 10 years ago

@delphaber thanks for your answer, I have processed the file with a "convert to ASCII" command in Coda editor, but the problem persists...

I have also updated ruby to the latest release 2.1.1

dondia-lab commented 10 years ago

@Arkham Hi, thanks, I've tried the fix_utf8 branch but the problem persists...

delphaber commented 10 years ago

could you please tell me what's your dumped sql's encoding?

delphaber commented 10 years ago

Were you using ssh or ftp sync?

dondia-lab commented 10 years ago

I'm using ssh sync

alessandro-fazzi commented 10 years ago

Please, consider to reply also to the previous question; we'll be grateful.

lucdecri commented 10 years ago

view #74 it's solved

delphaber commented 10 years ago

Awesome :+1:

manolof commented 10 years ago

My solution was to add sql_content.force_encoding("UTF-8") on line 44 of sql_adapter.sb, right before sql_content.gsub!.... Probably not the best one, since I'm amateur in Ruby, maybe use sql_content.gsub!(/\P{ASCII}/, '') ?

alessandro-fazzi commented 10 years ago

@delphaber we have to take a look at this: the problem concerns also another issue: #90 @manolof thanks for the report

lindsaymarkward commented 8 years ago

Hi. I had this same problem, also solved by editing sql_adapter.rb manually. It's a year since this issue was closed. Is the problem still there? I have wordmove 1.3.1 Running inside VVV Thanks!

alessandro-fazzi commented 8 years ago

This is a no-problem/won't fix. Please refer to this wiki entry https://github.com/welaika/wordmove/wiki/invalid-byte-sequence-in-UTF-8-while-pushing---pulling-db for further informations

lindsaymarkward commented 8 years ago

Aha, thanks.It's useful to have this link here for future when finding this issue.

alessandro-fazzi commented 8 years ago

Sure! Thanks for asking about!