Language tagging helps to:
-
control classification, searching and sorting
-
control hyphenation, quotation marks, spacing, ligatures
-
allow reasonable voice synthesis
-
resolve glyph ambiguities ("undo" Han unification,...)
Language is largely orthogonal to character encoding