ruby on rails 3 - Uninitialised Constant Iconv -
In the recent code, using the following code to avoid UTF-8 problems with input text
ic = Iconv.new ('UTF-8 / IGNORE', 'UTF-8') #valid_string = ic.iconv (Untrusted_string + '') [0 .. - 2 ] Line [4] = IC.Connov (line [4] + '') [0 ..- 2] row [5] = ic. Coke (line [5] + '') [0 ..- 2] This works perfectly in development, however, once pushed on our server, The problem is "crude continuous icon" when we try to run the rack file with the above code.
Is there an easy way to fix this issue? Tried to add the gem 'iconv' to add the gem file and these errors were loaded upon installing the bundle, so assuming this is not the right way to fix it ...
Fix it by adding the requirement of 'iconv' at the top of the rack file
Comments
Post a Comment