Subject: | Deprication warning and patch for correct work with Catalyst::Plugin::Unicode |
1) Deprication warning: Catalyst::Controller::FormBuilder uses NEXT,
which is deprecated. Please see the Class::C3::Adopt::NEXT documentation
for details. NEXT used at Catalyst/Controller/FormBuilder.pm line 12
2) When using with Catalyst::Plugin::Unicode and in the case when form
isn't validated (no javascript) we need to encode field values:
use utf8;
foreach my $field ($self->_formbuilder->field) {
if ($field->value && utf8::is_utf8(my $value = $field->value)) {
utf8::encode($value);
$field->force(1);
$field->value( $value );
}
}
or maybe it's better to make Catalyst-Controller-FormBuilder-Unicode?..