WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. murklan
    Member
    Posted 1 year 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 );

    http://wordpress.org/extend/plugins/twitter-tracker/

  2. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 1 year ago #

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

  3. murklan
    Member
    Posted 1 year ago #

    #öland
    #ångest
    #hjärta

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic