From: MAwiniarski Date: 2008-09-11T22:52:05+09:00 Subject: Re: invalid char '\220' in expression While using gems with NetBeans, I've created new Rails Project then generated Scaffold then I want to create database using Rake Task db:create : and gets: ... .../mysql.so:1: Invalid char `\220' ('') in expression. I've installed mysql ruby gem earlier. And mysql.so comes with this gem. On 10 Wrz, 21:37, "Jano Svitok" wrote: > On Wed, Sep 10, 2008 at 21:18, MAwiniarski wrote: > > On 10 Wrz, 13:26, Lars Christensen wrote: > >> On Sep 10, 1:00 pm, MAwiniarski wrote: > > >> > Using Ruby in NetBeans I've got following error in separate cases with > >> > gems: > > >> > /.so:1: Invalid char `\220' in expression. > > >> > What is it about ? > > >> By coincience, I stumbled over the exact same error message yesterday > >> while making a wrapper for some ruby scripts. It turned out I had > >> accidentally called ruby.exe with the ruby.exe executable as argument, > >> for example (simplified): > > >>     system("ruby c:\\ruby\\bin\\ruby.exe") > > >> '\220' is 0x90 HEX and the third byte (after two ASCII chars) in a > >> Windows executable or DLL. Ruby doesn't like that when attempting to > >> parse an executable. > > >> Hope it helps, > >> Lars > > > Maybe *.so files needs to be saved in a different encoding (ASCII, > > UTF, ...) ? > > .so is usually renamed dll file (on windows) or the library itself (on > linux), so no encoding change needed. > What are you doing when you get this error?