>
> Hm, who the heck uses "u8"? I'd rather go with
>
> >>> encodings.aliases.aliases["steven_s_preferred_encoding"] = "utf_8"
> >>> "Hello".encode("--- Steven's preferred encoding ---")
> b'Hello'
>
> ;)
>
Peter Otten
> __
>
Or normalize almost any mistyping ;'):
>>> encodings.normalize_encodin
Steven D'Aprano wrote:
> On Fri, Apr 24, 2015 at 04:34:19PM -0700, Jim Mooney wrote:
>
>> I was looking things up and although there are aliases for utf_8 (utf8
>> and utf-8) I see no aliases for utf_8_sig, so I'm surprised the utf-8-sig
>> I tried using, worked at all. Actually, I was trying to