# New Ticket Created by Sam S. # Please include the string: [perl #128863] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128863 >
To subscribe to incoming data of a connected IO::Socket::Async, the choices currently are: .Supply() -- get UTF-8 decoded data as Str .Supply(:bin) -- get raw data as Buf In analogy to the open() function that takes both :bin and :enc adverbs, this should probably also accept :enc to allow dealing with text-based protocols in different encodings: .Supply(:enc<utf8-c8>) PS: Speaking of which, maybe utf8-c8 should be the default, considering jnthn's comment here¹ that "All things coming from the OS are decoded [as utf8-c8]", and reading from a socket might be considered "from the OS". --- [1] https://rt.perl.org/Ticket/Display.html?id=125420#txn-1374864
