• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

the core strips characters that aren't [A-Za-z0-9_] which means fields Dón and Dán can't be disambiguated from each other. there are many comments already in the code pointing out this is a BadThing. also, it forces other plugins in the system to know about this procedure (see Item2167)

# Chop out all except A-Za-z0-9_.
# I'm sure there must have been a good reason for this once.
sub _cleanField {
    my( $text ) = @_;
    $text = '' if( ! $text );
    # TODO: make this dependent on a 'character set includes non-alpha'
    # setting in TWiki.cfg - and do same in Render.pm re 8859 test.
    # I18N: don't get rid of non-ASCII characters
    # TW: this is applied to the key in the field; it is not obvious
    # why we need I18N in the key (albeit there could be collisions due
    # to the filtering... but all the current topics are keyed on _cleanField
    $text =~ s/<nop>//go;    # support <nop> character in title
    $text =~ s/[^A-Za-z0-9_\.]//go;
    return $text;

-- WN

Do you have an alternative implementation in mind?


Is there any (really) good reason for removing non-ascii characters from field names?

Just removing this filter wouldn't break applications that don't use international characters in field names ...

-- AT

Some info on this bug at TWiki:Support.InternationalCharactersInFormFields and corresponding Codev page. Thought it was fixed in SVN, probably mainline though...

Other previously logged bugs in I18N are generally at TWiki:Codev.InternationalisationIssues in case anyone wants to go bug-fixing.

-- RD

This is fixed in SVN.

-- SP

Summary I18N: Allow international characters in form field names
ReportedBy TWiki:Main.WillNorris

SVN Range Wed, 26 Apr 2006 build 9917
AppliesTo Engine

Priority Urgent
CurrentState Closed


TargetRelease minor
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2007-01-16 - JasonHill
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback