All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Problems with norwegian characters

aelvan 4 Nov 2013 09:21 problem, complete

Hi,

On the two latest sites I've done, I've used Low Search. On both, I'm having some problems with norwegian special characters (øæåØÆÅ).

The clients informed me that when they search for entries with norwegian characters, they're not returned, and I've confirmed this. What's really weird is that if I go to the control panel, rebuild the index for the respective channel, and then search again, some of these entries actually show up. But now some other entries don't. And if I go into the entry and save it again, everything is back to where it was before I rebuild index.

This is an example from holte.no, in the first link I've searched for "byggesaksn", while in the other "byggesaksnøkkelen":

http://holte.no/no/search/results/eyJ...

http://holte.no/no/search/results/eyJ...

If I rebuild the index, the second link returns the same result as the first one. It still doesn't return any results if I search for the whole word, "byggesaksnøkkelen".

The site is running ExpressionEngine 2.5.5 and Low Search 2.4.2. The other site runs ExpressionEngine 2.6.1 and Low Search 2.4.2.

Any idea what's going on?

Replies

  1. Low 4 Nov 2013 09:35

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  2. Low 4 Nov 2013 09:39

    Also, what's the contents of your /system/expressionengine/config/foreign_chars.php file?

  3. aelvan 4 Nov 2013 11:18

    Sent. The contents of the file is the EE default I think:

    "ss", // ß
    '224' => "a",
    '225' => "a",
    '226' => "a",
    '229' => "a",
    '227' => "ae", // ã
    '228' => "ae", // ä
    '230' => "ae", // æ
    '231' => "c",
    '232' => "e", // è
    '233' => "e", // é
    '234' => "e", // ê
    '235' => "e", // ë
    '236' => "i",
    '237' => "i",
    '238' => "i",
    '239' => "i",
    '241' => "n",
    '242' => "o",
    '243' => "o",
    '244' => "o",
    '245' => "o",
    '246' => "oe", // ö
    '248' => "o",
    '249' => "u",
    '250' => "u",
    '251' => "u",
    '252' => "ue", // ü
    '255' => "y",
    '257' => "aa",
    '269' => "ch",
    '275' => "ee",
    '291' => "gj",
    '299' => "ii",
    '311' => "kj",
    '316' => "lj",
    '326' => "nj",
    '353' => "sh",
    '363' => "uu",
    '382' => "zh",
    '256' => "aa",
    '268' => "ch",
    '274' => "ee",
    '290' => "gj",
    '298' => "ii",
    '310' => "kj",
    '315' => "lj",
    '325' => "nj",
    '352' => "sh",
    '362' => "uu",
    '381' => "zh",
    );

    /* End of file foreign_chars.php */
    /* Location: ./system/expressionengine/config/foreign_chars.php */

  4. Low 5 Nov 2013 14:08

    For visibility: setting $config['charset'] = 'UTF-8'; (uppercase) solved the issue.