Transliteration of Danish characters I have a site running with these modules (among others):


Pathauto
Transliteration


My problem comes with danish characters. Normally they would be replaced like this:


Æ = Ae
æ = ae    
Ø = Oe
ø = oe
Å = Aa
å = aa


However, the Transliteration module isn't working like I would expect; it replaces:


Æ = ae
æ = ae (correct)
Ø = o
ø = o
Å = a
å = a


So "ÆØÅ - æøå" becomes "aeoa-aeoa".

The "lower case issue" might be caused by the Pathauto module, and it is not neccesarily a problem with the transliteration. Still it's not correctly replaced.

This is a file from the Transliteration module that I think it does the replacement of Danish characters, but I can't figure out how to make it work correctly.

x00.php

&lt;?php

$base = array(
  // Note: to save memory plain ASCII mappings have been left out.
  0x80 =&gt; '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  0x90 =&gt; '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  0xA0 =&gt; ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '&lt;&lt;', '!', '', '(r)', '-',
  0xB0 =&gt; 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '&gt;&gt;', '1/4', '1/2', '3/4', '?',
  0xC0 =&gt; 'A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I',
  0xD0 =&gt; 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'x', 'O', 'U', 'U', 'U', 'U', 'U', 'Th', 'ss',
  0xE0 =&gt; 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
  0xF0 =&gt; 'd', 'n', 'o', 'o', 'o', 'o', 'o', '/', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y',
);

// Overrides for Danish input.
$variant['da'] = array(
  0xC5 =&gt; 'Aa',
  0xD8 =&gt; 'Oe',
  0xE5 =&gt; 'aa',
  0xF8 =&gt; 'oe',
);

// Overrides for German input.
$variant['de'] = array(
  0xC4 =&gt; 'Ae',
  0xD6 =&gt; 'Oe',
  0xDC =&gt; 'Ue',
  0xE4 =&gt; 'ae',
  0xF6 =&gt; 'oe',
  0xFC =&gt; 'ue',
  0xDF =&gt; 'ss',
);


SOLUTION

When developing I had the language set to English; it needs to be set to Danish, in order to get this to work.
SOLUTION

When developing I had the language set to English; it needs to be set to Danish, in order to get this to work.