Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently keyword filter doesn't support UTF-8 'cause by default internal PHP functions are ASCII-only. Here's a small patch to fix this issue - tested by mine on russian feeds...
--- keyword_filter.inc.orig 2011-02-01 05:33:13.000000000 +0300
+++ keyword_filter.inc 2011-07-06 15:55:15.000000000 +0400
@@ -41,14 +41,14 @@
$settings['regex'] = FALSE;
if (!$settings['word_boundaries'] && $settings['case_sensitive']) {
- $settings['func'] = 'strpos';
+ $settings['func'] = 'mb_strpos';
}
else if (!$settings['word_boundaries'] && !$settings['case_sensitive']) {
- $settings['func'] = 'stripos';
+ $settings['func'] = 'mb_stripos';
}
else {
foreach ($settings['word_list'] as &$word) {
- $word = '/\b' . $word . '\b/';
+ $word = '/\b' . $word . '\b/u';
if (!$settings['case_sensitive']) {
$word .= 'i';
Comments
Comment #1
twistor CreditAttribution: twistor commentedFixed, thanks!
6.x
http://drupalcode.org/project/feeds_tamper.git/commit/7cdb42e
7.x
http://drupalcode.org/project/feeds_tamper.git/commit/772bc8b