Skip to content

Search does not work in UTF-16 LE encoded files #17408

Closed

Description

@garfieldbanks
  • VSCode Version: 1.8.0
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create and open a test_folder in VSCode.
    image

  2. Add an XML file encoded in UTF-16 LE.
    image

  3. Add a javascript file encoded in UTF-8.
    image

  4. Make sure both files are closed. Then search for text that can be found in both files. Note that only the javascript file is actually listed in the results.
    image

Note: The XML file encoded in UTF-16 LE is found only if it is currently open in VSCode.

Activity

  1. bpasero commented on Dec 16, 2016

    @bpasero
    Contributor

    garfieldbanks I assume the file contains a UTF-16 LE BOM?

  2. added
    bug
    important
    on Dec 16, 2016
  3. garfieldbanks commented on Dec 16, 2016

    @garfieldbanks
    Author

    Wow. That was fast.

    I don't know. I just used VSCode to reopen an old file with a new encoding, and then I put in the text with the tag.

  4. bpasero commented on Dec 16, 2016

    @bpasero
    Contributor

    I can reproduce after saving a file within VS Code in UTF-16 LE. Also reproduces with VS Code 1.7.

  5. changed the title [-]XML files encoded in UTF-16 LE are not searchable in find in folder[/-] [+]Regression: search no longer finds in UTF-16 encoded files[/+] on Dec 16, 2016
  6. changed the title [-]Regression: search no longer finds in UTF-16 encoded files[/-] [+]Search does not work in UTF-16 LE encoded files[/+] on Dec 17, 2016
  7. added
    search
    on Dec 17, 2016
  8. added a commit that references this issue on Dec 17, 2016
    00d483b
  9. added a commit that references this issue on Dec 19, 2016
    a6a73e5
  10. locked and limited conversation to collaborators on Nov 18, 2017
  11. added 2 commits that reference this issue on Sep 6, 2026
    fdaa3c8
    4d2461b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportantsearchverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions