• 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.

Item5928: solve encoding bug

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine I18N Normal Waiting for Feedback TWiki:Main.CfcnAngel n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


sub makeAnchorName {


return urlEncode($anchorName);


sub urlEncode {
my $text = shift;
$text =~ s/([^0-9a-zA-Z-_.:~!*'\/%])/'%'.sprintf('%02x',ord($1))/ge;
return $text;


sub _make_params {


$anchor .= '#' . shift( @args );


$anchor .= '#' . urlEncode(shift( @args ));



-- TWiki:Main/CfcnAngel - 15 Aug 2008

The topic above is not readable at all.

And how can it be confimed when we cannot even read it?

Is this bug report in Chinese or what? This bug tracker does not use utf8 and the text above looks like it was copies from UTF8 text in non-english.

-- TWiki:Main.KennethLavrsen - 15 Aug 2008

I'm 99% sure that this is indeed in Chinese, because the provided backlink points to a copy which can be translated (cf. here). And we can always read the code, no? smile

If I understand correctly, the problem is that while URLs are encoded, arguments currently are not which may cause problems for certain (localised) setups--at least with IE6...

-- TWiki:Main.MarkusUeberall - 15 Aug 2008

Summary solve encoding bug
ReportedBy TWiki:Main.CfcnAngel
Codebase 4.1.2, 4.2.2
SVN Range TWiki-5.0.0, Mon, 11 Aug 2008, build 17408
AppliesTo Engine
Component I18N
Priority Normal
CurrentState Waiting for Feedback
WaitingFor TWiki:Main.CfcnAngel

TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2008-08-15 - MarkusUeberall
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