17. The system of claim 10 , wherein the similarity module is programmed to identify the character encoding of the text stream based on identifying the similarity between the representative vector and the neighboring vector by determining that the neighboring vector is the nearest neighbor to the representative vector within the vector space.
10. A system for detecting character encodings of text streams, the system comprising: an identification module programmed to identify a request to identify a character encoding of a text stream; a division module programmed to divide the text stream to identify a plurality of n-grams within the text stream; a vector module programmed to identify a plurality of vectors within a vector space, each vector representing a potential character encoding by a plurality of expected n-grams within the potential character encoding; a generation module programmed to generate, based at least in part on the plurality of n-grams within the text stream and based at least in part on an inverse frequency of appearance of each of the plurality of n-grams within the plurality of vectors, a representative vector describing the text stream; a similarity module programmed to identify the character encoding of the text stream based on identifying a similarity between the representative vector and a neighboring vector within the plurality of vectors representing the character encoding; at least one processor configured to execute the identification module, the division module, the vector module, the generation module, and the similarity module.