M
Mk 27
I have been trying to use iconv to deal with ISO-8559-1 to UTF-8
translation of web page data in rails.
I wrote a short program to test the syntax, processing one of the pages
I was having a problem with. It worked, so I transferred the code into
my rails app. Then it appeared to not work (running under webrick), so
I went back to the test script and suddenly this error started
appearing:
iconv.rb:7:in `<top (required)>': uninitialized constant Iconv
(NameError)
from test.rb:1:in `require'
from test.rb:1:in `<main>'
This error persists even with a one line script:
require "iconv"
I presume nothing could have happened to change iconv.so, etc. So what
could have happened to cause this problem?
translation of web page data in rails.
I wrote a short program to test the syntax, processing one of the pages
I was having a problem with. It worked, so I transferred the code into
my rails app. Then it appeared to not work (running under webrick), so
I went back to the test script and suddenly this error started
appearing:
iconv.rb:7:in `<top (required)>': uninitialized constant Iconv
(NameError)
from test.rb:1:in `require'
from test.rb:1:in `<main>'
This error persists even with a one line script:
require "iconv"
I presume nothing could have happened to change iconv.so, etc. So what
could have happened to cause this problem?