in reply to Re^3: Decoding Russian text
in thread Decoding Russian text

By some reason if I put :encoding(UTF-8) to both STDIN and STDOUT it works fine.
But I want to apply encoding to a single string, not to an input stream. How can I do this ?

Replies are listed 'Best First'.
Re^5: Decoding Russian text
by ikegami (Patriarch) on Jul 13, 2011 at 23:00 UTC

    But I want to apply encoding to a single string, not to an input stream.

    uh, that's what the program already does. decode($enc, $str)