Hi,

2011/7/30 Zainan Victor Zhou <[email protected]>:
> Dear SF team and developers,
> I have problem when implementing search feature Jobeet Lesson 17 for my
> cfssf (github : https://github.com/xinbenlv/cfssf , tag issue-2 )
> when visiting
> http://test2.chinafundseeker.org/search?query=%E5%8C%97%E4%BA%AC
> It outputs:
> Notice: iconv_strlen(): Detected an illegal character in input string in
> /home/xinbenlv/cfssf/lib/vendor/Zend/Search/Lucene/Search/QueryLexer.php on
> line 342
>
> Jobeet Lesson 17
> http://www.symfony-project.org/jobeet/1_4/Doctrine/en/17
>
> Any idea of why and how to solve it?

Try to add
    Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('UTF-8');
to registerZend()


  static public function registerZend()
  {
    if (self::$zendLoaded)
    {
      return;
    }

    
set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
    require_once
sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/Autoloader.php';
    Zend_Loader_Autoloader::getInstance();
    Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('UTF-8');
    self::$zendLoaded = true;
  }

> Thank you very much!
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>



-- 
Best regards,
Michal

http://eventhorizon.pl/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to