Yaoyao Gu
8/9/2006 11:48:00 PM
Hi Jano,
I have tried unpack the exe file, then add the reference of ICONV.rb and
ISO-8859-1.rb to the app.eee file. Then I repack the file and run it. I
still have the same error as before. I attached the following code that
generates this exception. Any hints?
begin
load 'rexml/encodings/ICONV.rb'
instance_eval @@__REXML_encoding_methods
Iconv::iconv( UTF_8, @encoding, "" )
rescue LoadError, Exception => err
raise "Bad encoding name #@encoding" unless @encoding =~
/^[\w-]+$/
@encoding.untaint
enc_file = File.join( "rexml", "encodings", "#@encoding.rb" )
begin
load enc_file
instance_eval @@__REXML_encoding_methods
rescue LoadError
puts $!.message
raise Exception.new( "No decoder found for encoding #@encoding.
Please install iconv." )
end
end
On Aug 09, 2006 05:44 PM, Jan Svitok <jan.svitok@gmail.com> wrote:
> Fix:
> On 8/9/06, Jan Svitok <jan.svitok@gmail.com> wrote:
> > On 8/9/06, Yaoyao Gu <guy@ece.osu.edu> wrote:
> > First, try adding path to the ISO....rb to %RUBYOPTS%:
> >
> > set RUBYOPTS=%RUBYOPTS% -Ipath/to/iso88591.rb
>
> set RUBYOPTS=%RUBYOPTS% -Ipath/to/lib dir
>
> i.e. set RUBYOPTS=%RUBYOPTS% -Ic:/ruby/lib/1.8
>
> Jano
>