On 2012-11-02 01:12:48, ilya.tk@gmail.com wrote:
Show quoted text> C:\>chcp 65001 # Need to set "Lucida Console" font to view utf8
> characters in cmd.exe
> C:\>perl -MTerm::Encoding=term_encoding -MEncode -e
> "decode(term_encoding(), 'a')"
> Unknown encoding 'cp65001' at -e line 1.
>
> Wish to return utf-8, if codepage is 65001
Alternatively (and probably the better solution): this could be implemented in Encode::Alias as a new alias cp65001 -> utf-8.