# Rubyscript2exe.rb issue

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916>\
**Category:** Ruby\
**Created:** [February 8, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916 "2007-02-08T17:55:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/bbce88/32.png) [@vinod](https://www.ruby-forum.com/u/vinod)\
**Post date:** [February 8, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916/1 "2007-02-08T17:55:44Z")

</div>

I have created some script which runs fine when i ran it from the  
command promt ruby file.rb.  
but when i conver it to exe using rubyscript2exe & tried to ran the  
exe it gave me following error  
I didnt find WINDOWS-1252.rb file on my machine. so question  
1)how it running from command prompt without this file

I also tried packing the iconv.rb file into exe package but still no  
luck  
Can anybody please help me on this?

## Vinod

no such file to load – rexml/encodings/WINDOWS-1252.rb  
C:/DOCUME~1/VINOD\_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/  
parsers/treeparser.rb:89:in `parse': #<ArgumentError: No decoder found for encodin g WINDOWS-1252. Please install iconv.> (REXML::ParseException) C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/ encoding.rb:42:in`encoding=’  
C:/DOCUME~1/VINOD\_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/  
source.rb:47:in `encoding=' C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/ parsers/baseparser.rb:203:in`pull’  
C:/DOCUME~1/VINOD\_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/  
parsers/treeparser.rb:21:in `parse' C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/ document.rb:190:in`build’  
C:/DOCUME~1/VINOD\_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/lib/rexml/  
document.rb:45:in `initialize' C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\app \solutionfile.rb:25 C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\app \solutionfile.rb:20 C:\DOCUME~1\VINOD_~1\LOCALS~1\Temp\eee.solutionfile.exe.2\bootstrap.rb: 50 ... No decoder found for encoding WINDOWS-1252. Please install iconv. Line: 1 Position: 47 Last 80 unconsumed characters: from C:/DOCUME~1/VINOD_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/ lib/rexml/document.rb:190:in`build’  
from C:/DOCUME~1/VINOD\_~1/LOCALS~1/Temp/eee.solutionfile.exe.2/  
lib/rexml/document.rb:45:in `initialize’  
from C:\DOCUME~1\VINOD\_~1\LOCALS~1\Temp\eee.solutionfile.exe.  
2\app\solutionfile.rb:25  
from C:\DOCUME~1\VINOD\_~1\LOCALS~1\Temp\eee.solutionfile.exe.  
2\app\solutionfile.rb:20  
from C:\DOCUME~1\VINOD\_~1\LOCALS~1\Temp\eee.solutionfile.exe.  
2\bootstrap.rb:50

---

<div class="post-metadata">

**Author:** ![vinod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/bbce88/32.png) [@vinod](https://www.ruby-forum.com/u/vinod)\
**Post date:** [February 8, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916/2 "2007-02-08T21:22:07Z")

</div>

Are you running the exe on the same machine where you have generated the  
exe. If yes just recreate the exe again. otherwise I would suggest that  
you  
create this exe on the new machine. I have got a similar error when I  
generated the exe on Windows XP machine and tried to run it on Windows  
2000.
