[rt-users] Needless newlines in Subject
Alex S. Burba
burba at rfn.ru
Thu Jun 24 06:58:18 EDT 2004
Alex S. Burba пишет:
> Jesse Vincent wrote:
>
>>> Does anyone know how to solve a problem of needlees newlines in
>>> Subject field after converting it to utf-8 (for me it's converted
>>> from koi8-r to utf8)?
The problem has been solved by stripping away '\n' from the subject line
after encoding it to utf-8 in I18N.pm:
sub DecodeMIMEWordsToEncoding {
[...]
# Stripping '\n' from the subject
$str =~ s/\n//g;
return ($str);
}
After testing it in depth I post the final results. Also I don't know if
such solution is the best, maybe there are other ways to correct it.
--
Alex Burba, All-Russia state television and broadcasting company, NOC.
More information about the rt-users
mailing list