SID-02482: UTF-8 issues in "select" type field after upgrading to 6.1.0
| Status: |
Asked |
TWiki version: |
6.1.0 |
Perl version: |
5.18 |
| Category: |
FormPlugin |
Server OS: |
Ubuntu 14 |
Last update: |
4 years ago |
Hi,
I met a UTF-8 problem when I upgraded my Twiki application from version 4.0 to 6.1.0.
In "Edit" page, form field "select" and "combobox" can't display correct Utf-8 charset, while "text" has no this issue.
Any suggestions?
Thanks a lot.
Zhi X
--
Zhi X - 2021-12-07
Discussion and Answer
Is this
FormPlugin specific, or TWiki forms in general?
--
Peter Thoeny - 2021-12-07
Hi Peter,
Thanks for reply.
I'm not sure if it's specific to
FormPlugin or other plugins. It seems a general form issues.
Here are the HTML codes in browser.
<th class="twikiFormTableHRow" colspan="2"><a href="/do/view/Main/TaskForm" onclick="return launchWindow( "Main","TaskForm" )" rel="nofollow" target="TaskForm" title="在新窗口看详细内容">Main.TaskForm</a></th>
</tr>
<tr><th align="right"><span title="任务类型">TaskType</span></th><td align="left"><select class="twikiSelect twikiEditFormSelect" name="TaskType" size="1"><option class="twikiEditFormOption"></option><option class="twikiEditFormOption">骨æ¶çº¿ç»å¶</option><option class="twikiEditFormOption">åä½</option><option class="twikiEditFormOption">ç´ æåå¤</option><option class="twikiEditFormOption">å¾çå¤ç</option><option class="twikiEditFormOption">ååéé</option></select></td></tr>
<tr><th align="right"><span title="任务名称">TaskName</span></th><td align="left"><input type="text" name="TaskName" value="01 合作方案制定" size="100" class="twikiInputField twikiEditFormTextField" /></td></tr>
--
Zhi X - 2021-12-07
I have created two test topics to reproduce the problem,
https://twiki.org/cgi-bin/view/Sandbox/ZhiTaskForm
https://twiki.org/cgi-bin/view/Sandbox/ZhiTaskTest
Chinese characters can't display correctly in fields of "Select" type:
https://twiki.org/cgi-bin/edit/Sandbox/ZhiTaskTest?t=1638947667;action=form;nowysiwyg=0
and also in raw view page of form topic:
https://twiki.org/cgi-bin/view/Sandbox/ZhiTaskForm?raw=on
No these issues in "Text" and "TextArea" fields.
If more tests are needed, please let me know.
Thanks a lot.
ZhiX
--
Zhi X - 2021-12-08
CalvinSo &
HideyoImazu, could you please look at this? You have more experience with
I18N.
--
Peter Thoeny - 2021-12-24
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.