Closed dondia-lab closed 10 years ago
Hi
have you got any non ASCII char in your Movefile
?
May be related to https://github.com/welaika/wordmove/pull/71 ?
@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
@Arkham Hi, thanks, I've tried the fix_utf8 branch but the problem persists...
could you please tell me what's your dumped sql's encoding?
Were you using ssh or ftp sync?
I'm using ssh sync
Please, consider to reply also to the previous question; we'll be grateful.
view #74 it's solved
Awesome :+1:
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}/, '')
?
@delphaber we have to take a look at this: the problem concerns also another issue: #90 @manolof thanks for the report
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!
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
Aha, thanks.It's useful to have this link here for future when finding this issue.
Sure! Thanks for asking about!
Hi, I get the error:
/.rvm/gems/ruby-2.0.0-p451@global/gems/wordmove-1.1.0/lib/wordmove/sql_adapter.rb:44:in
gsub!': invalid byte sequence in US-ASCII (ArgumentError)`