Hi everyonel,
I want to be able to convert UTF-16 strings to UTF-8. From a usenet post I
understand that the standard ‘iconv’ ext for Ruby can do that. That same
post explained that you have to:
- install iconv (this step I thought I could skip since iconv came in the
ruby-1.8.1.tar.gz) - set configure_args=–with-iconv-dir=<where_you_installed_it>
- nmake
well, after doing so in the win32 directory for Ruby 1.8.1 I do see a
message fly by saying “compiling iconv”, but after it’s done a search for
iconv does NOT show either an iconv.so or an iconv.dll, and also nmake
reports that ruby.exe and rubyw.exe have not been changed.
I also have a directory tree with ruby-1.9.0-20040402-i386-mswin32 which
does contain an iconv.so file, but the version of irb in that directory
tree apparently doesn’t know where to look for the .so, just starting up the
1.9.0.etc version of irb results in it showing a messagebox with the text:
“This application has failed to start because readline.dll was not found.
Re-installing the application may fix this problem.” . After clicking on
the OK button irb does start running, but when I type require ‘iconv’ it
gives that same messagebox, except that it says it can’t find 'iconv.dll’
and after clicking the OK button again I get to see the following lines in
irb:
LoadError: 126: The specified module could not be found. -
H:/ruby_190/lib/ruby/1.9/i386-mswin32/iconv.so
from H:/ruby_190/lib/ruby/1.9/i386-mswin32/iconv.so
from (irb):1
And what’s more, the iconv.so it says it can’t find is exactly in the
directory where irb says it can’t find it!
So, my questions are: am I missing something really simple in that first
procedure (the one for Ruby 1.8.1)? Or, alternatively, how can I get the
Ruby 1.9 install to recognise that the .so files it can’t find are exactly
where it’s looking?
Martin