ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

[EE1.6.8] pspell encoding settings

March 31, 2010 6:30am

Subscribe [2]
  • #1 / Mar 31, 2010 6:30am

    Baniaczek

    1 posts

    File: core.spellcheck.php, function check( )

    After replacing language to $lang=‘pl’ I have had to modify line

    $str = '<?xml version="1.0" encoding="UTF-8"?'.">\n<items>\n";

    to

    $str = '<?xml version="1.0" encoding="ISO8859-2"?'.">\n<items>\n";

    It’s independent on system encoding settings.

    How to reproduce problem:
    set $lang to ‘pl’

    edit weblog entry. Use default words “Thank you for choosing ExpressionEngine”
    spellcheck
    take a look at first word “Thank”
    Look at suggestions. The first suggestion should be “HankÄ…”. If encoding is set to UTF-8 you will see “Hank?”.

    —————

    Another issue:
    You shouldn’t use $common words if the language is not english.

    —————

    Greetengs.

  • #2 / Mar 31, 2010 1:28pm

    Robin Sowell

    13255 posts

    Thanks for the report, Baniaczek.  I’m a little confused- can you walk me through:

    set $lang to ‘pl’

    And what language pack are you using?  And I take it in your user settings or in ‘Admin- Localization’ you’ve got it set for another language - which is what?  And in ‘System Prefs- General Config’, what’s your ‘Default Character Set’?

  • #3 / Mar 31, 2010 7:37pm

    Baniaczek

    1 posts

    Thanks for the report, Baniaczek.  I’m a little confused- can you walk me through:

    set $lang to ‘pl’

    Put it $lang=‘pl’ on the beginning of the function check() in the core.spellcheck.php file, or set hidden configuration variable spellcheck_language_code.

    And what language pack are you using?

    None. Default english.

    And in ‘System Prefs- General Config’, what’s your ‘Default Character Set’?

    Doesn’t matter, doesn’t depend - any of appropriate settings for polish: UTF-8, ISO8859-2, cp1250.

  • #4 / Jul 08, 2010 5:24pm

    Robin Sowell

    13255 posts

    Sorry for the delay on this one- I couldn’t replicate, but it may be due to server differences.

    I’ve mailed over an updated file- basically, we keep the utf for google spellchecks and use the system prefs if pspell is used.  Let me know if this does the trick for you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases