:on_change => Proc.new { |bot, v| reconfigure_filter(bot) })
BotConfig.register BotConfigArrayValue.new(
:on_change => Proc.new { |bot, v| reconfigure_filter(bot) })
BotConfig.register BotConfigArrayValue.new(
- 'encoding.charsets', :default => ['utf-8', 'cp1252'],
+ 'encoding.charsets', :default => ['utf-8', 'cp1252', 'iso-8859-15'],
:desc => "Ordered list of iconv(3) charsets the bot should try",
:on_change => Proc.new { |bot, v| reconfigure_filter(bot) })
:desc => "Ordered list of iconv(3) charsets the bot should try",
:on_change => Proc.new { |bot, v| reconfigure_filter(bot) })
@iencs = iencs.dup
@iconvs = @iencs.map { |_| Iconv.new('utf-8', _) }
debug "*** o = #{o}, i = #{i}, iencs = #{iencs.inspect}"
@iencs = iencs.dup
@iconvs = @iencs.map { |_| Iconv.new('utf-8', _) }
debug "*** o = #{o}, i = #{i}, iencs = #{iencs.inspect}"
- @default_in = Iconv.new('utf-8', i)
- @default_out = Iconv.new(o, 'utf-8')
+ @default_in = Iconv.new('utf-8//ignore', i)
+ @default_out = Iconv.new(o, 'utf-8//ignore')