lib/knj/php.rb in knjrbfw-0.0.12 vs lib/knj/php.rb in knjrbfw-0.0.13

- old
+ new

@@ -299,11 +299,10 @@ end string = "#{string[from.to_i, to.to_i]}" if !string.valid_encoding? and Knj::Php.class_exists("Iconv") - ic = Iconv.new("UTF-8//IGNORE", "UTF-8") - string = ic.iconv(string + " ")[0..-2] + string = Iconv.conv("UTF-8//IGNORE", "UTF-8", "#{string} ")[0..-2] end return string end \ No newline at end of file