Skip Menu |

This queue is for tickets about the Term-Encoding CPAN distribution.

Report information
The Basics
Id: 80561
Status: open
Priority: 0/
Queue: Term-Encoding

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
ilya.tk [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: utf8 encoding detecting on Windows is not correct
Date: Fri, 2 Nov 2012 08:12:38 +0300
To: bug-Term-Encoding [...] rt.cpan.org
From: Илья Ткаченко <ilya.tk [...] gmail.com>
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
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.