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