ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Does the Search Module work for the Chinese language

February 20, 2011 6:34pm

Subscribe [2]
  • #1 / Feb 20, 2011 6:34pm

    Mark Wushu

    58 posts

    Hi all,

    I’ve built a bilingual site - English and Chinese. I’ve also got the search module working - just with a single search field rather than the advanced one.

    However, though it does work for the English content on the site, it doesn’t match up the Chinese content.

    I’ve got the charset as UTF-8 but is it the case that the search module won’t work for Chinese? Or is there something else I need to do?

    Many thanks,

    Mark

  • #2 / Feb 21, 2011 10:17am

    Sue Crocker

    26054 posts

    Hi, Mark.

    What is in your simple search? Are you only searching for the title, or all content?

  • #3 / Feb 21, 2011 10:24am

    Mark Wushu

    58 posts

    Hi Sue,

    Searching “everywhere”!

  • #4 / Feb 21, 2011 4:36pm

    Ingmar

    29245 posts

    What version and build of EE are you using? The site as such is working fine?

  • #5 / Feb 21, 2011 5:38pm

    Mark Wushu

    58 posts

    I’m running v2.1.3 - Build:  20101220. The site is working well - you can see it at the following address and try out the search in Chinese too :

    http://www.ipcn.co.uk/en/news

    Thanks,

    Mark

  • #6 / Feb 22, 2011 9:05am

    Sue Crocker

    26054 posts

    I searched for the word William in the english version, and it returned what I’d expect it to, but can you create an entry with mixed English and Chinese words, and search for either/or?

  • #7 / Feb 22, 2011 9:29am

    Mark Wushu

    58 posts

    All entries have both English and Chinese words - split using different (custom) fields. i.e. for News, there’s an English Summary and a Chinese Summary, only one is set to show based on your language preference.

    If this is what you mean - I just tried putting Chinese characters into the English summary for a sample news item and copied and pasted a character into the search to test, but again, shows ‘no results’. Its as if the query doesn’t process Chinese?

    When you say either/or, do you within an advanced search?

  • #8 / Feb 22, 2011 8:06pm

    Sue Crocker

    26054 posts

    I meant put a Chinese word in the English text, and English text in the Chinese content - just to see what happens with it.

  • #9 / Feb 23, 2011 6:35pm

    Mark Wushu

    58 posts

    Hi Sue,

    Yep, just tried that and it does show up on the site as an entry, but not as a search result…

  • #10 / Feb 24, 2011 9:03am

    Sue Crocker

    26054 posts

    Hi, Mark. I tried the following on a local install (see enclosed image) and EE found it just fine.

    So in theory, the problem isn’t with the Chinese characters per se..

    Can you post your exact template?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases