In Windows 10, does encoding text files affect the search functionality of Windows?

Rowe Frank 1 Reputation point
2022-07-22T06:38:31.4+00:00

I guess so, because I'm building a batch of text files on an Ubuntu computer, and their encoding is of course UTF-8. After copying them to a Windows 10 computer, if you want to search for the contents of these text files in the search box in the upper right corner of File Explorer, no results are returned; But after converting the encoding of these text files from uft-8 to cp936, you can return search results.

在 Windows 10 中 ,文本文件的编码会影响 Windows 的搜索功能吗?

我猜会的,因为我在 Ubuntu 电脑上生成的一批文本文件,它们的编码当然是 utf-8 的。把它们复制到 Windows 10 电脑之后,想在文件资源管理器右上角的搜索框中搜索这些文本文件中的内容,是没有返回结果的;但是把这些文本文件的编码由 uft-8 转换成 cp936 之后,就能够返回搜索结果。

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,931 Reputation points
    2022-07-26T07:53:57.22+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query related to Encoding.

    There is a format loss when text in Unicode format is saved using ANSI encoding. Therefore, even though you were able to save the files as you indicated, the ANSI-encoded files actually lost their format and were instead represented to the system in what is known as "gibberish"

    Reference :

    https://support.microsoft.com/en-us/office/choose-text-encoding-when-you-open-and-save-files-60d59c21-88b5-4006-831c-d536d42fd861

    --------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.