# Rubyscript2exe \> Invalid char \`\\220' in expression (RC=256)?

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761>\
**Category:** Ruby\
**Created:** [September 28, 2007, 9:47am UTC](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761 "2007-09-28T09:47:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebhanS\_Gilbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7feea3/32.png) [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Post date:** [September 28, 2007, 9:47am UTC](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761/1 "2007-09-28T09:47:11Z")

</div>

Hi,

i want to create an executable of the following  
simple ruby snippet =

time=Time.now.strftime(‘%d.%m.%Y’)  
exec(“c:/Programme/Internet Explorer/IEXPLORE.EXE  
[http://scmcs/deploy/ControllerServlet?startsuchdatum=#{time}&endesuchdat](http://scmcs/deploy/ControllerServlet?startsuchdatum=#%7Btime%7D&endesuchdat)  
um=#{time}&jobsuchen=Jobsuche+starten&command=getjobuebersichtzeitraum”)

works fine, but when i try to create the executable i get =  
c:\ruby\_tools\rubyscript2exe\>ruby rubyscript2exe.rb jobsuche.rb  
Tracing jobsuche …  
jobsuche.rb:1: Invalid char `\220’ in expression

I also tried with allinoneruby, got the same error =  
Invalid char `\220’ in expression

Any ideas what went wrong and how to get my executable ?

Regards,Gilbert

---

<div class="post-metadata">

**Author:** ![RebhanS\_Gilbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7feea3/32.png) [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Post date:** [September 28, 2007, 10:32am UTC](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761/2 "2007-09-28T10:32:33Z")

</div>

Rebhan, Gilbert wrote:

> Hi,
> 
> i want to create an executable of the following  
> simple ruby snippet =
> 
> time=Time.now.strftime(‘%d.%m.%Y’)  
> exec(“c:/Programme/Internet Explorer/IEXPLORE.EXE  
> [http://scmcs/deploy/ControllerServlet?startsuchdatum=#{time}&endesuchdat](http://scmcs/deploy/ControllerServlet?startsuchdatum=#%7Btime%7D&endesuchdat)  
> um=#{time}&jobsuchen=Jobsuche+starten&command=getjobuebersichtzeitraum”)
> 
> works fine, but when i try to create the executable i get =  
> c:\ruby\_tools\rubyscript2exe\>ruby rubyscript2exe.rb jobsuche.rb  
> Tracing jobsuche …  
> jobsuche.rb:1: Invalid char `\220’ in expression
> 
> I also tried with allinoneruby, got the same error =  
> Invalid char `\220’ in expression
> 
> Any ideas what went wrong and how to get my executable ?
> 
> Regards,Gilbert

I haven’t work with with ruby2script (yet), but it looks like you have  
an UTF-8 character where not expected.

by  
TheR

---

<div class="post-metadata">

**Author:** ![RebhanS\_Gilbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7feea3/32.png) [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Post date:** [September 28, 2007, 10:41am UTC](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761/3 "2007-09-28T10:41:02Z")

</div>

Hi,
