mailcvt 0.2.36 → 0.2.37
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/encoded_word.rb +3 -2
- data/lib/mailcvt/version.rb +1 -1
- metadata +1 -1
data/lib/encoded_word.rb
CHANGED
@@ -183,11 +183,12 @@ class EncodedWord
|
|
183
183
|
begin
|
184
184
|
return wd.encode(out_charset, charset, :undef=>:replace, :invalid=>:replace)
|
185
185
|
rescue => e
|
186
|
-
|
186
|
+
print "Cannot encode #{input} because #{e}, try iconv..."
|
187
187
|
begin
|
188
|
+
puts "OK"
|
188
189
|
return Iconv.conv(out_charset + "//IGNORE", charset, wd)
|
189
190
|
rescue => e
|
190
|
-
puts "
|
191
|
+
puts "Iconv failed too because #{e}. Return ''."
|
191
192
|
return ''
|
192
193
|
end
|
193
194
|
end
|
data/lib/mailcvt/version.rb
CHANGED