In twitter_pull.module function twitter_pull_add_links($text) I replaced the hashtag pattern (the last one) with the following:

  $pattern = '/[#]+([\pL\pN]+)/u';

See http://ca.php.net/manual/en/regexp.reference.unicode.php for more info. Basically, a hashtag is comprised of unicode letters and numbers. That includes é, ç, etc. Not including dashes since they're not linked by Twitter.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

teelmo’s picture

Yeah, this is a problem here in Finland also while we use scandic letters (Å, Ö and Ä) quite often.

See the attached screenshot. The whole hashtag "#keihäs" should be linked while now the anchor include only "#keih".

Ruedische’s picture

Patch added.

Ruedische’s picture