Is there a crate in @rustlang to determine whether a file is a binary or a text file?
-
-
UTF-8 can contain any bytes other than FE / FF, but any high bytes (80-FD) have to be in very specific patterns. UTF-16 can contain any bytes, but some sequences are illegal (split surrogates). But yeah both are *unlikely* to contain any C0 control codes other than \t\r\n.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.