Home  >  Q&A  >  body text

java - 为什么安装了ik分词,但是测试中文分词的结果却不对

天蓬老师天蓬老师2744 days ago851

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:50:01

    Obviously the encoding is wrong. Your program needs to receive UTF-8 encoding, but your Windows version of curl uses the system default encoding GBK.

    Solution:

    • Using Linux, macOS, FreeBSD...

    • Use UTF-8 to encode the string into the form of %xx yourself

    • Write a program yourself to use UTF-8 to encode Chinese on URL

    Holding two 锟斤拷s
    Shouting hot, hot, hot
    Stepping on thousands of flowers
    Looking at all things with a smile 锘锘锘

    reply
    0
  • Cancelreply