some search won't working when the folder contains Chinese characters

Found a bug in "Everything"? report it here
Post Reply
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

some search won't working when the folder contains Chinese characters

Post by ssdde »

there are two folders, the first is named in English, the second one with Chinese characters, almost same sup file structures in these folders.

D:\folder1
D:\电视剧 folder1
Image


first, when i want to search all the cht.sup files in the English named folder, i search like this, it works perfect.
Image

second, when i want to search all the cht.sup files in the Chinese named folder, i search like this, it won't work, no result at all
Image

so is it can be easy when search as non-english named folder like english folder? thanks.

win10 x64 1809
everything x64 1.4.1.1003
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

Does it help if you put the foldername in "", like:

Code: Select all

cht.sup   "D:\电视剧 folder1"
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 4:53 pm Does it help if you put the foldername in "", like:

Code: Select all

cht.sup   "D:\电视剧 folder1"
tried, works good for english folder, but no effect with chinese folder, no any result.

also tried this,

cht.sup 'D:\folder1'

not work for both two situations.
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

ssdde wrote: Wed Jan 13, 2021 5:41 pm cht.sup 'D:\folder1'
Use
cht.sup "D:\folder1"
instead. (double quotes instead of single quotes)

Another thing: you can check the statusbar to see if there are any search modifiers active. There should be none mentioned in the statusbar.
You can also check this in the Search menu: Only Everything should be selected.


EDIT: Forgot to mention that I did create this folder on my system and Everything could find it without problems with
t:\电视剧 folder1
as well as with
"t:\电视剧 folder1"
(I don't have a D:-drive)
tuska
Posts: 908
Joined: Thu Jul 13, 2017 9:14 am

Re: some search won't working when the folder contains Chinese characters

Post by tuska »

2021-01-13_Match path.png
2021-01-13_Match path.png (30.46 KiB) Viewed 30649 times
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: some search won't working when the folder contains Chinese characters

Post by therube »

If I'm doing it correctly, looks good on my end:

Image
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: some search won't working when the folder contains Chinese characters

Post by therube »

Oh, OK.
So you either have to have that option set (as it is by default), or you need to specifically tell it to match path.
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

Good catch, @tuska! (didn't see that one coming ... )
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 6:07 pm
ssdde wrote: Wed Jan 13, 2021 5:41 pm cht.sup 'D:\folder1'
Use
cht.sup "D:\folder1"
instead. (double quotes instead of single quotes)

Another thing: you can check the statusbar to see if there are any search modifiers active. There should be none mentioned in the statusbar.
You can also check this in the Search menu: Only Everything should be selected.


EDIT: Forgot to mention that I did create this folder on my system and Everything could find it without problems with
t:\电视剧 folder1
as well as with
"t:\电视剧 folder1"
(I don't have a D:-drive)

thanks.


.cht.sup D:\电视剧 folder1 no work

.cht.sup "D:\电视剧 folder1" this works

.cht.sup "D:\电视剧 folder1 even this works
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

and could you make this format works directly the same as english named? so that no need to enter any " in. especially sometime when i need to copy and paste many file directory to search, no need to add "

.cht.sup D:\电视剧 folder1
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

and i tried even this format works, but when copy and paste the whole file directory, not working.

Image

Image
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

and sometime i want to use most convenient way, only type some chinese name parts of folder, but this no working

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

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

ssdde wrote: Wed Jan 13, 2021 6:34 pm .cht.sup D:\电视剧 folder1 no work
That is expected. A space - that is not between "" - in Everything means AND.
So you are searching for filenames with .cht.sup AND folder1 in the filename AND D:\电视剧 somewhere in the path of that filename.
It would match a file "D:\电视剧 something\a filename that has folder1 and cht.sup in the name.txt"
It will NOT match "D:\电视剧 folder1\something.cht.sup" (no "folder1" in the fielname; only in the path)

If you keep i mind that a space - that is not between "" -means AND, you can probably understand why some of your examples are not working.

If something is still not clear, please post, so we can explain in more detail.
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 7:17 pm
ssdde wrote: Wed Jan 13, 2021 6:34 pm .cht.sup D:\电视剧 folder1 no work
That is expected. A space - that is not between "" - in Everything means AND.
So you are searching for filenames with .cht.sup AND folder1 in the filename AND D:\电视剧 somewhere in the path of that filename.
It would match a file "D:\电视剧 something\a filename that has folder1 and cht.sup in the name.txt"
It will NOT match "D:\电视剧 folder1\something.cht.sup" (no "folder1" in the fielname; only in the path)

If you keep i mind that a space - that is not between "" -means AND, you can probably understand why some of your examples are not working.

If something is still not clear, please post, so we can explain in more detail.

thanks for explain, but what i want is ,when i search like this

.cht.sup D:\电视剧 folder1

if the space came after :\ in search bar, that means the space should not be the AND or between function, right? because the space came after :\ sign shows the space should be a part of folder, to search in a folder


A space that is not between "" - in Everything means AND.

Could a space that is came after :\ - in Everything means as parts of folder name?
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

and i have another question, if i want to search all the cht.sup in both two folders at one time. how to?

these below are all not working
Image
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

ssdde wrote: Wed Jan 13, 2021 7:29 pm .cht.sup D:\电视剧 folder1

if the space came after :\ in search bar, that means the space should not be the AND or between function, right? because the space came after :\ sign shows the space should be a part of folder, to search in a folder
.cht.sup D:\ 电视剧 folder1
Would get translated to: a filename with .cht.sup AND folder1 AND 电视剧 in it's name AND also D:\ in the path.

When you enable Match Path (Menu:Search > Match Path), it will translate to:
a filename with .cht.sup AND folder1 AND 电视剧 AND D:\ somewhere in the filename or path.
That would find your cht.sup files.
It will also find - example - "D:\this is folder1\电视剧.cht.sup"
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

ssdde wrote: Wed Jan 13, 2021 7:42 pm and i have another question, if i want to search all the cht.sup in both two folders at one time. how to?

Code: Select all

cht.sup   "D:\ 电视剧 folder1" | "D:\folder1"  
The | is Everything-speak for OR. OR is "stronger" than AND (like * is stronger than + in arithmetic) , so that search would translate to:
Search for all files with cht.sup somewhere in the name [1] that have "D:\ 电视剧 folder1" OR "D:\folder1" somewhere in the name or the path.



[1] cht.sup could also be in the middle of the filename and it would still be found. If you only want files with file-extension cht.sup, you can search for
ext:cht.sup
. More info on that (and also on the topics we already discussed) can be found on the Everything Search Syntax page.
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 7:48 pm
ssdde wrote: Wed Jan 13, 2021 7:29 pm .cht.sup D:\电视剧 folder1

if the space came after :\ in search bar, that means the space should not be the AND or between function, right? because the space came after :\ sign shows the space should be a part of folder, to search in a folder
.cht.sup D:\ 电视剧 folder1
Would get translated to: a filename with .cht.sup AND folder1 AND 电视剧 in it's name AND also D:\ in the path.

When you enable Match Path (Menu:Search > Match Path), it will translate to:
a filename with .cht.sup AND folder1 AND 电视剧 AND D:\ somewhere in the filename or path.
That would find your cht.sup files.
It will also find - example - "D:\this is folder1\电视剧.cht.sup"
thank you very much for explain.

let's test.
imaging there is a file structure like this, a Chinese file in a Chinese folder

D:\好吃的 东西

好吃的东西.mp4


it works perfect even when there is a space in the folder, can be searched
Image

but when this, not working. have to add " to the folder beginning and the end
Image

Image
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 7:59 pm
ssdde wrote: Wed Jan 13, 2021 7:42 pm and i have another question, if i want to search all the cht.sup in both two folders at one time. how to?

Code: Select all

cht.sup   "D:\ 电视剧 folder1" | "D:\folder1"  
The | is Everything-speak for OR. OR is "stronger" than AND (like * is stronger than + in arithmetic) , so that search would translate to:
Search for all files with cht.sup somewhere in the name [1] that have "D:\ 电视剧 folder1" OR "D:\folder1" somewhere in the name or the path.



[1] cht.sup could also be in the middle of the filename and it would still be found. If you only want files with file-extension cht.sup, you can search for
ext:cht.sup
. More info on that (and also on the topics we already discussed) can be found on the Everything Search Syntax page.


OK, thanks.
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

i don't know why this can be found and the other can not
Image

if rename like this, can't be found
Image


D:\好吃的 东西 rename to D:\好吃的 dongxi

好吃的东西.mp4
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: some search won't working when the folder contains Chinese characters

Post by NotNull »

i don't know why this can be found and the other can not

That is because 东西 is not only part of the foldername, but also of the filename

(1) 东西.mp4
search for filenames with 东西.mp4
(2) D:\好吃的
Search folders containing D:\好吃的
(3) 东西
search for filenames containing 东西 (and that will match 好吃的东西.mp4
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

NotNull wrote: Wed Jan 13, 2021 8:31 pm i don't know why this can be found and the other can not

That is because 东西 is not only part of the foldername, but also of the filename

(1) 东西.mp4
search for filenames with 东西.mp4
(2) D:\好吃的
Search folders containing D:\好吃的
(3) 东西
search for filenames containing 东西 (and that will match 好吃的东西.mp4

OK, got it, thanks.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: some search won't working when the folder contains Chinese characters

Post by void »

Don't forget to escape spaces with double quotes ;)

For example:
东西.mp4 "D:\好吃的 dongxi"


As others have mentioned, you might have an easier time if you enable Match Path from the Search menu:


This will force Everything to match the full path and filename (instead of just the filename).
With Match Path enabled, the white spaces in paths do not have to be escaped.
ssdde
Posts: 19
Joined: Sat Mar 02, 2019 11:18 am

Re: some search won't working when the folder contains Chinese characters

Post by ssdde »

void wrote: Thu Jan 14, 2021 11:15 pm Don't forget to escape spaces with double quotes ;)

For example:
东西.mp4 "D:\好吃的 dongxi"


As others have mentioned, you might have an easier time if you enable Match Path from the Search menu:


This will force Everything to match the full path and filename (instead of just the filename).
With Match Path enabled, the white spaces in paths do not have to be escaped.

OK, learned, thanks
Post Reply