Tags:
create new tag
view all tags

SID-02482: UTF-8 issues in "select" type field after upgrading to 6.1.0

Status: Asked 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

      Change status to:
ALERT! 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.
SupportForm
Status Asked
Title UTF-8 issues in "select" type field after upgrading to 6.1.0
SupportCategory FormPlugin
TWiki version 6.1.0
Server OS Ubuntu 14
Web server Apache 2.0
Perl version 5.18
Browser & version Chome
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2021-12-24 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.