# Unify non-Unicode file detection code \(\#62581\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4efba7161f848ab87be080f91bf28b06a7927c2c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4efba7161f848ab87be080f91bf28b06a7927c2c

Requested commit: 4efba7161f848ab87be080f91bf28b06a7927c2c

Commit: 4efba7161f848ab87be080f91bf28b06a7927c2c

Tree: e3a2cff0f99e2ee3b16daac139da71e9e3b41445

Author: Kirill Bulatov

Committer: GitHub

## Message

```
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
```

## Parents

- [b41505358fd9e80c746855c2533940643f2138ea](https://git.cafe/gitcafe/zed/commit/b41505358fd9e80c746855c2533940643f2138ea?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4efba7161f848ab87be080f91bf28b06a7927c2c?format=markdown)
