Answers.Body: <p>Most likely, you're not using a charset/collation that supports Mandarin characters, and MySQL's full-text search (like the <code>MATCH</code> query Craft uses and you shared) is very charset/collation specific.</p>
  <p><a href="https://dev.mysql.com/doc/refman/8.0/en/faqs-cjk.html" rel="nofollow noreferrer">https://dev.mysql.com/doc/refman/8.0/en/faqs-cjk.html</a></p>
  <p>At a minimum, you'll want to update the <code>searchindex</code> table to a collation that supports, those characters, but you'll likely want to audit other Craft tables/columns that store them as well.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-09T05:11:44.227Z
Answers.LastActivityDate: 2023-03-09T05:11:44.227Z
Answers.UserDisplayName: Brad Bell
Body: <p>We have a multisite installation that has Mandarin as one of its languages, and searches do not work at all for that site. Looking into it, it seems to be an issue with how Craft runs the SQL queries, specifically</p>
  <pre class="lang-sql prettyprint-override"><code>MATCH (`keywords`) AGAINST('+科技*' IN BOOLEAN MODE)
  </code></pre>
  <p>This returns zero results, but if I change it to</p>
  <pre class="lang-sql prettyprint-override"><code>keywords LIKE '科技'
  </code></pre>
  <p>it will return the expected results. Is there a way around this at all?</p>
  
Tags: <search>
Title: Searching with foreign charcters
ThreadText: # Searching with foreign charcters
  
  (Asked by: username_0 on 2023-03-08)
  
  We have a multisite installation that has Mandarin as one of its languages, and searches do not work at all for that site. Looking into it, it seems to be an issue with how Craft runs the SQL queries, specifically
  
  ```sql
  MATCH (`keywords`) AGAINST('+科技*' IN BOOLEAN MODE)
  
  ```
  
  This returns zero results, but if I change it to
  
  ```sql
  keywords LIKE '科技'
  
  ```
  
  it will return the expected results. Is there a way around this at all?
  
  **Tags:** search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-03-09. Score: 1
  
  Most likely, you're not using a charset/collation that supports Mandarin characters, and MySQL's full-text search (like the `MATCH` query Craft uses and you shared) is very charset/collation specific.
  
  <https://dev.mysql.com/doc/refman/8.0/en/faqs-cjk.html>
  
  At a minimum, you'll want to update the `searchindex` table to a collation that supports, those characters, but you'll likely want to audit other Craft tables/columns that store them as well.
  
  
  ---
  
  