You are here: Foswiki>Tasks Web>Item9448 (05 Jul 2015, GeorgeClark)Edit Attach

Item9448: Japanese Characters Used as Data FormField names get Garbled

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: DataForms, I18N
Branches:
Reported By: JoelDeJesus
Waiting For:
Last Change By: GeorgeClark
There are two, possibly related bugs I run into.

Raw Wiki View

When I save Japanese text into a topic page, the text comes out garbled in the Raw Wiki Text View.

Input

| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* |
| Version | text | 30 |  | version number being documented |   |
| OS | select+multi | 4 | Linux, Mac OS, Windows XP, Windows Server, Windows Vista, Cross-Platform | operating system|   |
| License | select | 1 | bsd, gpl2, gpl3, commercial | type of license |   |
| 言語 | checkbox+buttons | 3 | English,日本語,中文 | language of choice |   |
| ホームページ  | text | 40 |  | homepage of the software |   |

Output (Post Save)

The last field gets garbled.

Name Type Size Values Tooltip message Attributes
Version text 30   version number being documented  
OS select+multi 4 Linux, Mac OS, Windows XP, Windows Server, Windows Vista, Cross-Platform operating system  
License select 1 bsd, gpl2, gpl3, commercial type of license  
言語 checkbox+buttons 3 English,日本語,中文 language of choice  
ホームページ text 40   homepage of the software  

FormField Names

If I use Japanese characters in a Form Field Name, the data does not save at all.

Input

This is on the edit page where you put in the data into the form fields.
Version 変更登記
OS Mac OS
License bsd
言語 日本語
ホームページ google.com

Output (Post Save)

It is missing the 言語 (Language) and ホームページ (Home Page).

Version 変�›�登記
OS Mac OS
License bsd

Side Note

If I put in Japanese characters as Data (with the Field Name using Latin characters), the data gets garbled when I try to edit it again.

  1. First Edit View:
    | Version    | 変更登記|
    |OS |   Mac OS|
    |License |   bsd |
  2. Post First Save:
    | Version    | 変更登記|
    |OS |   Mac OS|
    |License |   bsd |
  3. | Version    | 変�›�登記|
    |OS |   Mac OS|
    |License |   bsd |


See also: Item11698

-- CrawfordCurrie - 17 Feb 2015

Works fine in 1.2.0 (unicode)

-- Main.CrawfordCurrie - 24 Jun 2015 - 15:47
 

ItemTemplate edit

Summary Japanese Characters Used as Data FormField names get Garbled
ReportedBy JoelDeJesus
Codebase 1.0.9
SVN Range 9000-9500
AppliesTo Engine
Component DataForms, I18N
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy