Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Search not working in second language...

Search not working in second language...

Locked

Views: 1,583

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
13 Aug 2006, 12:20 PM
#1
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Search not working in second language...

I am not sure what forum this question should go in.

I have a bilingual site. I have just discovered that searching in the side box or in the advanced search, using Japanese does not return any results.

I can put numbers in the search field and I will get results, but even putting English in there shows nothing whereas doing so on the E side of course, gets results...

Putting Japanese in the E side gets nothing too..

Any ideas anyone?

13 Aug 2006, 12:45 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Search not working in second language...

Post your url to avoid a battery of questions...

13 Aug 2006, 12:49 PM
#3
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Search not working in second language...

Hi,

Here is the URL http://store.globalpeace.jp/

Thanks!

13 Aug 2006, 12:54 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Search not working in second language...

This may be on my end but when looking at this in english:

Dennis Kucinich, The Peace President - Japanese
1,500Yen
In May of 2003 Yumi met Dennis Kucinich, one of the Presidential Candidates in the 2004 US presidential election. Their meeting was so powerful that Yumi felt compelled to write a book about Dennis. This book is the result!

You will find in it some of Dennis' moving speeches and statements along with Yumi's comments. Yumi also discusses the possibility of establishing a Ministry of Peace in Japan.

There is no English translation available of this book.

Written by Yumi Kikuchi.
I get this when I switch to Japanese:
デニス・クシニッチ ? アメリカに平和の大統領を - 日本語
1,500Yen
2003年5月、きくちゆみは2004年アメリカ大統領候補のデニス・クシニッチに会いにアメリカに行く。ふたりの出会いがこの本のできるきっかけになる。

ゆみのコメントをリードにデニスの感動的なスピーチや声明が収録されている。平和省を日本にという構想も。
I would guess that I am not mapped to display the correct character set???

13 Aug 2006, 1:52 PM
#5
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Search not working in second language...

Hi,

You are mapped correctly. That is the correct Japanese...

Unless of course, it is appearing correctly on my browser and not in yours... I have included a picture of how it should appear for you to see...

Thanks!

13 Aug 2006, 3:50 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Search not working in second language...

Hi Peacefreak

The Japanese looks fine to me. But the search ... not so good.

I can get results for text expressed in latin characters, DVD for example, and 911 generates more results in Japanese than in English. However, to do this I need to enter them using an English input method. If I use a Japanese input method DVD's OK but unless I use half width alphanumeric, 911 no longer matches up to the western encoding and I get no results. Hiragana / Katakana - nothing. One surprising result, 本 actually returned a hit, but I think that this was a random result where the search routines interpretatio n of the two bytes making up 本 just happened to match something else. Certainly there were no references to 本 on page that was returned.

My guess is that the search algorithm cannot cope with multibyte characters. Even if it could, if it's based on MySQL, it may need your page format to the UTF rather than EUC-JP. As you can probably tell, I'm now bumping up against the limts of my knowledge in this area, so hopefully somebody more knowledgeable will step in and take this further. It would help to know which Zen Cart version you are using (is it one of the Japanese releases and if so which one?) and which version of MySQL you are using.

14 Aug 2006, 5:26 AM
#7
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

Re: Search not working in second language...

Yea Kuroi,
Thats my findings as well.
It doesnt work basically.

14 Aug 2006, 7:08 AM
#8
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Search not working in second language...

Hello Kuroi San,

Well, I am using English Zen 1.3.0.2 with Japanese module from about 2 or so months ago...

My database is MySQL 4.1.19-standard-log.

Reecy, I notice the search function works fine on your site... Have you got a pure Japanese installation?

I certainly hope there is a way to get the search function happening in mine...

24 Aug 2006, 1:37 PM
#9
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Search not working in second language...

Search is now fixed... When I originally entered the product names in the cart I did not have the Japanese Admin module installed. I could enter them fine, and they appeared OK, but actually, I guess they were in some kind of HTML format for Japanese.

A few days ago I installed the Japanese Admin files. I then tested it but that was not enough. I had to reenter the product names and resave them and now all is fine.

So, for multi-language carts, I think it is necessary to install the Admin for the other languages prior to inputting data for the other languages languages...

24 Aug 2006, 1:43 PM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Search not working in second language...

I suspect that you are right for multi-byte languages, i.e. those which cannot be represented via the extended ascii character set.