Chinese character in the directory is garbled in File List scenario

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

Chinese character in the directory is garbled in File List scenario

Post by void_hero »

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.
Attachments
20190512211914.png
20190512211914.png (56.46 KiB) Viewed 7027 times
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

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

Post by NotNull »

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
2019-05-12 18_15_51-Everything.png (22.54 KiB) Viewed 7024 times
void_hero
Posts: 32
Joined: Thu Aug 18, 2016 6:54 am

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

Post by void_hero »

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.
Attachments
20190513214006.png
20190513214006.png (47.07 KiB) Viewed 7015 times
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

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

Post by NotNull »

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: 32
Joined: Thu Aug 18, 2016 6:54 am

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

Post by void_hero »

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: 5517
Joined: Wed May 24, 2017 9:22 pm

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

Post by NotNull »

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