Menu

#16 WYSIWYG Editor

open
None
5
2005-03-10
2005-02-25
Ben Higgins
No

Extended language specific characters can be used in
the editor, but are mangled when reopenning the page to
edit.

As an example, entering the name "Grétar" into the
editor, it saves properly and displays properly. When
reopening the page to edit, the name is transformed
into "GrĂŠtar". Edit the page again, and it's
transformed further to "Gr�Štar"

Discussion

  • Petr Mifek

    Petr Mifek - 2005-02-28

    Logged In: YES
    user_id=1229293

    Don't know if this issue wasn't on topic before, but if you just
    want to do a dirty hack, you may edit two files
    (texteditorcontrol.php and htmleditorcontrol.php
    under /subsystems/forms/controls/) and replace in each the
    only htmlentities(st) to htmlentities(st, encoding) - see php
    manual at php.net to find the supported encodings, or, if your
    desired encoding is not in the list, you may use
    htmlspecialchars(st) instead of the htmlentities(st). It works
    for me (i need the php-unsupported iso-8859-2 encoding), but
    don't know all the consequences. Anyone could explain?

    --Petr

     
  • Ben Higgins

    Ben Higgins - 2005-02-28

    Logged In: YES
    user_id=46040

    Changing htmlentities to htmlspecialchars solved this
    problem for me, thank you.

     
  • James Hunt

    James Hunt - 2005-03-10
    • labels: 701521 -->
    • milestone: 460220 -->
    • assigned_to: nobody --> filetreefrog
     
  • James Hunt

    James Hunt - 2005-03-10

    Logged In: YES
    user_id=972839

    Making this into a patch, since it seems to resolve the
    problem. Thanks pmifek!

     
  • Hans Wolters

    Hans Wolters - 2005-06-28

    Logged In: YES
    user_id=1293757

    Using the following in your php.ini will solve the problem
    with new items:

    default_charset = "iso-8859-1"

     

Log in to post a comment.