Results 11 to 11 of 11

Thread: Spellcheck and accents in 4.0.x

Threaded View

  1. #1
    Join Date
    Dec 2005
    Posts
    150
    Rep Power
    9

    Default Spellcheck and accents in 4.0.x

    Hi!

    When I do spellcheck of a text with accents (like in French or Spanish), the accentuated characters are used as separators.

    The problem is two-folded: the regexp in aspell.php and the text extracted from the webclient.

    The first part is solved as in the WiKi, that is, the regexp used to convert the text to a list of words is:

    $words = preg_split('/[^\w\'\xc0-\xfd-]+/', $text);

    To test it, I can access the test page directly as:

    http://localhost:7780/aspell.php

    and fill a text with accents. This works fine.

    The problem is the text passed as argument from Zimbra. The WebMail replaces the accents with "?", then, of course, a word like

    exécuter

    becomes

    ex?cuter

    which the PHP code correctly splits in the words "ex" and "cuter".

    I traced the problem down to AjxStringUtil.convertHtml2Text(), but I don't see anything wrong with the code. Can it be the Element.toString() that is working in a weird way?

    Any hints?

    Carlos
    Last edited by cvidal; 10-22-2006 at 12:32 PM.

Similar Threads

  1. Replies: 0
    Last Post: 09-30-2006, 06:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •