I updated TinyMCEPlugin / WysiwygPlugin to 16767 (5/6) / 16836 (5/28) from 4.2.0 default version.
When I added chinese word in my topic and save, save is ok but
all my topic content is cleared!
I created a test topic in LitterTray:
TinyMCEPluginTest but got different test result as below:
When I click "Back" of my browser, I got:
--
TWiki:Main/MagicYang - 07 Jun 2008
If you can give me the example characters you used (paste them in this topic using raw edit) I will check. But if your TWiki is configured for UTF8 it ought to work - I tested Chinese characters before the last checkin, with the help of
TWiki:Main.KwangErnLiew. Note that this site is
not configured for UTF-8 and creating test topics in
LitterTray won't achieve anything.
--
TWiki:Main.CrawfordCurrie - 08 Jun 2008
My installation setting are:
$TWiki::cfg{Site}{Locale} = 'en_US.UTF-8';
$TWiki::cfg{Site}{LocaleRegexes} = 1;
$TWiki::cfg{Site}{CharSet} = 'UTF-8';
and any chinese characters will cause the problem. Here is a sample for you: 中文
BTW, Chinese words in
TinyMCEPlugin is ok in my default 4.2.0 installation/configuration but fail when I upgrade TinyMCEPlugin / WysiwygPlugin.
--
TWiki:Main.MagicYang - 09 Jun 2008
Note that in rev 4 the form of this bug item disappeared. I restored it back.
KJL
When the error (save to blank page) occurred, I found some error messages in Apache error log:
[Thu Jun 12 19:36:53 2008] [error] [client 10.44.153.72] Use of uninitialized value in substitution
(s///) at /teamspace/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 118., referer:
http://f8
ats02.tsmc.com.tw/twiki/bin/edit/QMS/TestNotify?t=1213270490
[Thu Jun 12 19:36:53 2008] [error] [client 10.44.153.72] Use of uninitialized value in subroutine en
try at /teamspace/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 121., referer:
http://f8ats
02.tsmc.com.tw/twiki/bin/edit/QMS/TestNotify?t=1213270490
--
TWiki:Main.MagicYang - 12 Jun 2008
I have Chinese functioning correctly again for normal WYSIWYG edits, but it has highlighted a curious issue. When I save from pickaxe mode, I get a
Wide character in print error
- but not all the time. If I paste in characters selected from the Wikipedia Chinese page, it crashes, but if I paste in the
same characters from a previous WYSIWYG edit in TWiki, it doesn't. Obviously there is some browser sensitivity to the encoding that I don't fully understand. Working on it as and when I get a chance.
--
TWiki:Main.CrawfordCurrie - 12 Jun 2008
Do you have a chance to get a whole saved blank page like me?
--
TWiki:Main.MagicYang - 13 Jun 2008
I want to rollback to default 4.2.0 version (TinyMCEPlugin / WysiwygPlugin to 16268 / 16174) to avoid Chinese problem. The "save to totally blank page" will not happen in this version pair but have another problem: %ACC......% will become �C......% when I get into
TinyMCE editor!
--
TWiki:Main.MagicYang - 13 Jun 2008
The "saved blank page" is due to a problem in the core code which causes any empty topic to be saved if a
Wide character in print
error occurs. There is nothing i can do about that, except to try to avoid that situation.
--
TWiki:Main.CrawfordCurrie - 17 Jun 2008
Took a while to track the last problem down, and it turned out to be a core bug (
Item5710.
--
CrawfordCurrie - 17 Jun 2008