Loading...
 
Skip to main content

WYSIWYG and International character problem in links

Status
Closed
Subject
WYSIWYG and International character problem in links
Version
6.x
7.x
Category
  • Error
Feature
WYSIWYG (What You See is What You Get)
Lastmod by
Arild Berg
Rating
(0)
Description

Problem: Corrupted URLs when linking pages using international characters in the page name.
It works when the link is first saved, but a reload and a subsequent saved will corrupt the URL.
The same problem occurs in 6.x 7.x and 8.0 SVN.

In these tests the WYSIWYG editor is used.
(I have formatted the output a little for better readability)

- Test using latest 8.0 SVN version -

1. Create the page "ÆØÅ page"
2. Create the page "MyLinkPage"
3. Add a link to "ÆØÅ page" on MyLinkPage, using the link tool in the menu
4. Save and exit editor

Content of MyLinkPage (wiki source view)

<p><a class="wiki" href="tiki-index.php?page=%C6%D8%C5+page">ÆØÅ page</a></p>


Content of MyLinkPage in the database (tiki_pages.data)

'<p><a class="wiki" href="tiki-index.php?page=%C6%D8%C5+page">ÆØÅ page</a></p>'


5. Edit MyLinkPage again <<<<<<<<<<<<< URL is no longer encoded, but the page name is

Content of MyLinkPage (WYSIWYG source view)

<p><a class="wiki" href="tiki-index.php?page=ÆØÅ+page">ÆØÅ page</a></p>


6. Add some text in the WYSIWYG editor
added some text

8. Save and exit editor <<<<<<<<<<<<<<<< CONTENT HAS A CORRUPTED URL

Content of MyLinkPage (wiki source view)

<p><a class="wiki" href="tiki-index.php?page=%C3%86%C3%98%C3%85+page">ÆØÅ page</a></p> <p>added some text</p>


Content of MyLinkPage in the database (tiki_pages.data)

'<p><a class="wiki" href="tiki-index.php?page=%C3%86%C3%98%C3%85+page">ÆØÅ page</a></p> <p>added some text</p>

'

-- end of test --

As far as I can see, the problem occurs when the WYSIWYG editor loads the page
(it works the first time, because the links are not loaded, only saved).

I tried a similar test using the wiki editor
The wiki editor stores the wiki content.
Thus database the content is: ÆØÅ page
The wiki editor has no problems.

A variation is loading the page using the wiki editor, then switching to the WYSIWYG editor
The source in WYSIWYG is afterwards

<p><a class="wiki" href="tiki-index.php?page=Ã?Ã?Ã?+page" title="ÆØÅ page">ÆØÅ page</a><br /> added some text</p>


thus also corrupted the URL.

Solution
Solved in Tiki 8
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Created
Wednesday 07 September, 2011 15:32:54 UTC
by Arild Berg
LastModif
Friday 07 October, 2011 19:25:26 UTC


Show PHP error messages