Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get PSPELL 0.5.3 to work (i use Apache 2.2.12). I used the latest win32 installer and installed the latest german and english dictionaries from the GNU page.

Now when executing this test snippet

3    function testSpell($pspell_link) {
4       echo pspell_check($pspell_link, “testt”) ? 'OK' : 'NOT OK';
5    }
7    $pspell_link = pspell_new('de');
8    testSpell($pspell_link);

to see if PSPELL is working correctly i get:

Warning: pspell_new() [function.pspell-new]: PSPELL couldn't open the dictionary. reason: The file "C:\Programme\Aspell\dict/de-only.rws" is not in the proper format. in ...\check.php on line 7

What can be done to get it into the right format so that i can use PSPELL?

share|improve this question

From here, accuracy not guaranteed in the least:

Another common problem with ASpell on win32 is the error message:

<filename> is not in the proper format.

This can be resolved by converting all the files in the "Program Files\ASpelldata" directory from DOS to unix format. Search google for dos2unix.exe and you will find a utility that can do it. This will resolve the error.

Alternately, you can do it with a bit of PHP; just preg_replace between "\n" and "\r\n" (depending on which direction you're converting) across the whole file.

share|improve this answer
already tried that, but it did not change anything – Thariama Jul 16 '10 at 13:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.