Chinese character in the directory is garbled in File List scenario

Found a bug in "Everything"? report it here
Post Reply
void_hero
Posts: 8
Joined: Thu Aug 18, 2016 6:54 am

Chinese character in the directory is garbled in File List scenario

Post by void_hero » Sun May 12, 2019 1:27 pm

Hi Team,
as the Subject goes, there's the test.efu file, within which, there're the Chinese characters in the directory/folder, so as the attached screenshot, they're garbled(just error, can't read as expected).

for testing reference, the .efu content is:

Code: Select all

 Filename,Size,Date Modified,Date Created,Attributes
  "C:\Users\Administrator\Desktop\这是个测试文件夹\test\test\test.jpg"
it's expected to be fixed, thank you for the consideration and optimisation.
You do not have the required permissions to view the files attached to this post.

NotNull
Posts: 1393
Joined: Wed May 24, 2017 9:22 pm

Re: Chinese character in the directory is garbled in File List scenario

Post by NotNull » Sun May 12, 2019 4:13 pm

I think that is because of the format of your EFU file. It misses date, size, attributes and the entry starts with two spaces.
It should look something like:

Code: Select all

Filename,Size,Date Modified,Date Created,Attributes
"C:\Users\Administrator\Desktop\这是个测试文件夹\test\test\test.jpg",12345,132021504789675397,132021504789675397,32
The easiest two ways to create a correct EFU file is
  1. Using the EFU editor
    (Menu:Tools > File List Editor)
  2. Exporting Search results as an EFU list
    (Menu:File > Export : Save as type Everything EFU file list)


EDIT:
Tested with a dummy file:
2019-05-12 18_15_51-Everything.png
You do not have the required permissions to view the files attached to this post.

void_hero
Posts: 8
Joined: Thu Aug 18, 2016 6:54 am

Re: Chinese character in the directory is garbled in File List scenario

Post by void_hero » Mon May 13, 2019 1:43 pm

Hi...
thanks for the tip.
as attached, while i tested with your code, it's just with error again.
and the other main point is:
without the Size,Date Modified,Date Created,Attributes, etc, and in the directory without the Chinese character, only with English character, then, it's totally fine without error.
so, based on above 2 points, it's the other kind of optimisation point.

thanks.
You do not have the required permissions to view the files attached to this post.

NotNull
Posts: 1393
Joined: Wed May 24, 2017 9:22 pm

Re: Chinese character in the directory is garbled in File List scenario

Post by NotNull » Mon May 13, 2019 2:51 pm

It looks like your EFU file is not UTF8 encoded. In - for example - Notepad you can do Menu:File > Save As > Encoding = UTF8 to convert it to UTF8.

And, as suggested before:
What happens if you let the EFU File Editor create the EFU file?
Or when you export your "C:\Users\Administrator\Desktop" folder to an EFU file?

void_hero
Posts: 8
Joined: Thu Aug 18, 2016 6:54 am

Re: Chinese character in the directory is garbled in File List scenario

Post by void_hero » Tue May 14, 2019 12:02 pm

Hi...
what a great finding!
ok, you're totally right! the error comes out when it's not UTF8 encoded, and after i modified it back into UTF8 encoded, it's totally fine without issue.
and for your suggestion, yup, i also tested them both, and they works great also without any issue again!

so the root cause comes from that the .efu file is not generated from what's suggested by you, but i create it outside of everything, so it needs to be concerned then.

thank you for your time to investigate on this isssue!

NotNull
Posts: 1393
Joined: Wed May 24, 2017 9:22 pm

Re: Chinese character in the directory is garbled in File List scenario

Post by NotNull » Tue May 14, 2019 6:57 pm

You're welcome! Glad that I could help.
And thank you for taking the time to post your feedback. Much appreciated! ( I wish more people would do that ...)

(and luckily this wasn't a bug after all ... although those get fixed pretty quick too)

Post Reply