Jump to content

File Search has an issue in search chinese name folder


Recommended Posts

Posted

 

Some folder with Chinese name could not be found by Alfred if not the  name. 

However, Spotlight can find them with part of the name. 

 

for example, I create an empty folder. ( the name contains 5 Chinese characters)

Spotlight can find it correctly with full name or part of the name. 

 

Snipaste_2018-11-15_13-27-46.png.969d794485f7da03b384f244939c5528.png

Snipaste_2018-11-15_12-30-40.png.911842b551c192d807493479c0594cd1.png

 

However, with Alfred. 

full name is okay, of course.

If I use only first character of folder name, Alfred find the target.

Snipaste_2018-11-15_12-32-00.png.0ac257b751ee4c9a85d90054ccf344cd.png

If I use first 2, 3, or 4 characters of it, nothing found by Alfred.  

Snipaste_2018-11-15_12-32-18.png.cdb262c17f353acbda260b7b493ed0ba.png

 

I found a related post in 2014, but cannot find the solution. 

I tried to tick the settings of the word boundaries and fuzzy search but cannot fix this issue.  

 

 

Snipaste_2018-11-15_12-30-13.png

Snipaste_2018-11-15_13-26-00.png

  • 1 month later...
Posted

I think it is hard for the developer of Alfred to reproduce such problem. 

 

I found this problem may come from the different UTF-8 sets in my system. 

 

After remove all other languages in the system preference of Mac and restart the system. 
(i.e. change the locale to zh_tw.UTF-8)

the search result for Alfred and spotlight is the same if I use some  traditional Chinese Characters to find file.

 

However, if I use characters of simplified Chinese to find a specific file , Spotlight is able to find the file I need, and Alfred finds nothing.  

I have no idea how to fix this problem by setting. 
 

  • 3 years later...
Posted
On 12/24/2018 at 3:35 PM, REXCHANG said:

I think it is hard for the developer of Alfred to reproduce such problem. 

 

I found this problem may come from the different UTF-8 sets in my system. 

 

After remove all other languages in the system preference of Mac and restart the system. 
(i.e. change the locale to zh_tw.UTF-8)

the search result for Alfred and spotlight is the same if I use some  traditional Chinese Characters to find file.

 

However, if I use characters of simplified Chinese to find a specific file , Spotlight is able to find the file I need, and Alfred finds nothing.  

I have no idea how to fix this problem by setting. 
 

Same problem, and have no solution yet as of 2022

  • 1 year later...
Posted

Still the same problem here in 2024.

The post in below says the problem is due to word boundaries, controlled by OS X's metadata server, which presumably would affect the Spotlight search as well. However, searching in Spotlight yields a better result. Search for the same term in Spotlight could find the target file, while Alfred cannot.

 

 

  • 5 months later...
Posted (edited)

 

Still the same problem here in Sep 2024.

image.thumb.png.5ca3efd8388a13c6d3210b23260513f2.png

 

image.thumb.png.085bfb4b5b4506d0c459c74e9e533a5a.png

 

I've tried with RayCast, Alfred and uTools, still have same problem. I think this may caused by character encoding. Needs to be solved.

 

Edited by jbd
Posted

I think I've found the problem, it maybe caused by system language setting.

All these bugs were found on system language set was 'zh_TW'.

So I made a test:

1.mkdir ~/tmp

2.touch 搜索标准.txt

3.mdfind -onlyin . 'kMDItemFSName == "*标*"'

returns right result:

/Users/XXXX/tmp/搜索标准.txt

4.mdfind -onlyin . 'kMDItemFSName == "*标准*"'

returns nothing.

 

And when I changed my system language as Chinese Simplified, everything was ok.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...