Twitter Tracker
Small change makes # searchen work with scandinavian characters etc. (3 posts)

  1. murklan
    Posted 3 years ago #

    I noticed that the hashtags did'nt work with special swedish characters in UTF-8. So I changed something in model/twitter-search.php to make it work.
    line 74 was:
    $content = preg_replace( '/(^|\s)#(\w*[a-z_]+\w*)/i', '\1<a href="http://search.twitter.com/search?q=%23\2">#\2</a>', $content );

    changed to:
    $content = preg_replace( '/(^|\s)#(\w*[a-z_üÀ-ÖØ-öø-ÿ]+\w*)/i', '\1<a href="https://twitter.com/search?q=%23\2">#\2</a>', $content );


  2. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 3 years ago #

    Could you paste some example common Swedish hash tags which use the special characters that I can use for testing, please?

  3. murklan
    Posted 3 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter Tracker
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic