mailcvt 0.2.36 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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