Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
User Name Offline
Member
 
Posts: 116
Join Date: May 2005
Knowledgebase search and multibyte characters - 08-06-2006, 01:17 AM

The current search code will not work with multibyte languages such as Chinese, Japanese and Korean. Go to functions_sqlsearch.php inside esupport/includes and modify the following section:

Code:
// Sanitize the text
        $stopdata = array("#\s+#s", "#(\r\n|\r|\n)#s", "/[^a-zA-Z0-9\x80-\xff]/");
        $replacewith = array(" ", " ", "");
        $_query = preg_replace($stopdata, $replacewith, $query);
As above, modify the $stopdata variable. The \x80-\xff part will allow multibyte characters.
   
Reply With Quote
  (#2) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,829
Join Date: May 2003
08-06-2006, 01:37 AM

The fix is in the next build. Thanks for sharing.

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
Chow Offline
New Member
 
Chow's Avatar
 
Posts: 14
Join Date: Jul 2006
Location: Hong Kong
01-11-2006, 02:14 AM

Have the problem be fixed? If so can I have the hosted plan upgraded to the latest version??
   
Reply With Quote
  (#4) Old
User Name Offline
Member
 
Posts: 116
Join Date: May 2005
01-11-2006, 05:41 AM

Not fixed yet, as far as I can tell. They changed the code, but it still doesn't work with multibyte characters. The code I posted above does work.


PHP 5.1.5
MySQL 5.0.24
eSupport 3.04.10 (Zend, self-hosted)
   
Reply With Quote
  (#5) Old
triller Offline
Member
 
Posts: 52
Join Date: Apr 2006
01-11-2006, 11:07 AM

Hi, User Name, I have send you a PM, let's keep in touch for SS experience share.
   
Reply With Quote
  (#6) Old
tian Offline
Member
 
Posts: 67
Join Date: Dec 2006
22-12-2006, 12:45 PM

is it fiexed now?
   
Reply With Quote
  (#7) Old
Mahesh Slaria Offline
Member
 
Posts: 183
Join Date: Jul 2006
23-12-2006, 04:35 AM

Hi,

Yes, multibyte characters search is fixed in our latest CVS build. You can download and test it.

Thanks.

Regards,
   
Reply With Quote
  (#8) Old
triller Offline
Member
 
Posts: 52
Join Date: Apr 2006
23-12-2006, 10:59 AM

Quote:
Originally Posted by Mahesh Slaria
Hi,

Yes, multibyte characters search is fixed in our latest CVS build. You can download and test it.

Thanks.

Regards,
Can I know which exact CVS build you mentioned ? As I had been told the problem fixed in latest CVS build but actually not.

BTW, we still need to rebuild the ticket index after upgrade ?
   
Reply With Quote
  (#9) Old
triller Offline
Member
 
Posts: 52
Join Date: Apr 2006
25-12-2006, 12:15 AM

Tried the lasted CVS build, 3.04.51 (CVS) - 24 Dec 2006 01:13 AM, nothing changed, still can not search Chinese in ticket message...
   
Reply With Quote
  (#10) Old
Dancy Offline
New Member
 
Posts: 2
Join Date: Mar 2006
Exclamation 20-01-2007, 12:23 AM

Greetings,

Any update on this ?
   
Reply With Quote
  (#11) Old
triller Offline
Member
 
Posts: 52
Join Date: Apr 2006
06-03-2007, 01:09 PM

This problem is not fixed in V3.10 yet, anybody can update the progress ?
   
Reply With Quote
  (#12) Old
bsS Offline
New Member
 
Posts: 1
Join Date: May 2008
Unhappy 16-06-2008, 12:17 PM

What about arabic charset?
specially in rss when you submit ticket the ajax have problem to search the kb for arabic content
   
Reply With Quote
  (#13) Old
jnet Offline
Member
 
Posts: 527
Join Date: Mar 2008
16-06-2008, 12:48 PM

wait a min you mean this problem could easily be solved and I was suffering so much

Right now I will give it a try

thanks
   
Reply With Quote
  (#14) Old
jnet Offline
Member
 
Posts: 527
Join Date: Mar 2008
16-06-2008, 12:54 PM

I will try it tomorrow

Last edited by jnet; 16-06-2008 at 12:59 PM.
   
Reply With Quote
  (#15) Old
Razzaq Offline
New Member
 
Posts: 2
Join Date: May 2008
help - 17-06-2008, 07:02 AM

Hi, i have a client's site

Last month, our site has a very good ranking in google, but in this month ,

ranking is suddently fallys on our keywords.

But the keywords ranking in Yahoo is very much increased.
I can not understand why this is done by google.

Can any body give me some suggestion

Regards




Property Directory | Wholesale Billiards
Wholesale Batteries |Stock Brokers Directory
   
Reply With Quote
Reply

Tags
characters, knowledgebase, multibyte, search

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46