SIGN IN SIGN UP

Unify non-Unicode file detection code (#62581)

Closes https://github.com/zed-industries/zed/issues/62464
Closes https://github.com/zed-industries/zed/issues/62212

As a bonus, fixes the project search not working in BOM'd UTF-16 files.

Release Notes:

- Fixed project search not working in some non-Unicode files
K
Kirill Bulatov committed
4efba7161f848ab87be080f91bf28b06a7927c2c
Parent: b415053
Committed by GitHub <noreply@github.com> on 8/13/2026, 4:49:32 PM