Siebel SpellCheck Highlights the Wrong Text

Spell check functionality is not working properly. When invoking the Spell Check, it highlights the wrong text.

ACTUAL BEHAVIOR
-------------------------------
Spell Check is highlighting the wrong text, and we notice a partial highlight.

EXPECTED BEHAVIOR
----------------------------------
If a word with an incorrect spelling is encountered , the spell checker should highlight the complete word.

CAUSE

This defective behavior of Spell Check is caused due to HTMLEncoding.

Characters like

Less than (<)
Greater than (>)
Ampersand (&)
Quotation mark(")
Apostrophe(')

are HTMLencoded to "<", ">" ,"&",""" and "'" respectively.

For example , from the below sentence
'We aren't the Oweners' => the total characters are 21.

Once sentence is HTMLEncoded apostrophe is encoded to #&039; and so total characters are 26 - 'We aren#&039;t the Oweners'

So, with encoding and without encoding the length of the string is different and position of the misspelled word also changes. Due to this reason spell check does not high light the misspelled word. Instead the highlight is on the wrong position/word.

If their email text doesn't contain any of the above characters like Less than (<), Greater than (>),Ampersand (&),Quotation mark("),Apostrophe('), then the spell checker would function normally.

SOLUTION

This has been fixed from Siebel Fix Pack version 8.1.1.8 onwards.

Additionally we would need to add environment variable SpellCheckLevel1=true to make this work properly. Set the environment variable on all Application and Web Servers

BUG 12986061 - PROBLEM WITH SPELL CHECK WHILE REPLYING TO AN INCOMING EMAIL

Please review Configuring System Environment Variables : http://www.directutor.com/content/how-should-client-side-logging-be-set