PHP support UTF8 "word breaker" program, the solution

Source: Internet
Author: User
Request PHP Support UTF8 "word breaker" program, urgent ...
I now want to do a query search, but the input needs to enter the text to "participle", the master has no search, participle a little bit better source program (support Utf-8), provided to under, under the Grateful!

------Solution--------------------
If it is a virtual host, you can use the Weaving Dream segmentation algorithm V1.0
Http://www.dedecms.com/html/chanpinxiazai/20061229/3.html

If you have your own server you can consider installing PHP extensions Scws-Simple Chinese word breaker
Http://www.hightman.cn/index.php?scws
------Solution--------------------
UTF8 itself to do participle is not practical, because it is the universal code, it is not possible, if you are mainly Chinese, you use Chinese words, such as weaving dream division of speech, and then before the word UTF8 to GBK, divided well and then back to Utf-8, relative to the participle itself, the conversion time is very slight
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.