Gunnar Koppel wrote: > Seems my joy was too early. As i said, I alway use uppercase > filehandlers and so was in every real situation, where was this problem > with UTF<->modperl2. > > As a script solution with STD* works fine, but as a handler it gives > same output as earlier. > > My little test set for handler: > [...] > But not as a handler. Can't understand, why? Seems that binmode STD*, > ":utf8" has no power here?
Move your binmode()s into the handler -- otherwise they are happening only once, when the module is loaded (and before STDOUT, etc. are tied), instead of each time the handler runs. -- -- Jason Rhinelander