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
- 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 editorContent of MyLinkPage (wiki source view)
<p><a class="wiki" href="tiki-index.php?page=%C6%D8%C5+page">ÆØÅ page</a></p>
'<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)
5. Edit MyLinkPage again <<<<<<<<<<<<< URL is no longer encoded, but the page name isContent 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 text8. 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>
'<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)'
-- 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
<p><a class="wiki" href="tiki-index.php?page=Ã?Ã?Ã?+page" title="ÆØÅ page">ÆØÅ page</a><br /> added some text</p>
The source in WYSIWYG is afterwards
thus also corrupted the URL.- Solution
- Solved in Tiki 8
- Importance
- 8
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Created
- Wednesday 07 September, 2011 15:32:54 UTC
by Arild Berg - LastModif
- Friday 07 October, 2011 19:25:26 UTC