Page 1 of 1

Chinese character in the directory is garbled in File List scenario

Posted: Sun May 12, 2019 1:27 pm
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.

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

Posted: Sun May 12, 2019 4:13 pm
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 6256 times

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

Posted: Mon May 13, 2019 1:43 pm
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.

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

Posted: Mon May 13, 2019 2:51 pm
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?

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

Posted: Tue May 14, 2019 12:02 pm
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!

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

Posted: Tue May 14, 2019 6:57 pm
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)