• 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

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

\x{6211}\x{4eec}\x{77e5}\x{9053}\x{5728}firefox\x{91cc}\x{9762}\x{5b57}\x{4f53}url\x{8f6c}\x{7801}\x{548c}\x{4e0d}\x{8f6c}\x{7801}\x{662f}\x{6ca1}\x{6709}\x{4ec0}\x{4e48}\x{533a}\x{522b}\x{7684}\x{ff0c}\x{4f46}\x{662f}\x{5728}ie6\x{4e0b}\x{5fc5}\x{987b}\x{8981}url\x{8f6c}\x{7801}\x{ff0c}\x{5426}\x{5219}ie6\x{5c31}\x{4f1a}\x{6210}\x{4e3a}\x{4e71}\x{7801}\x{ff0c}(ie7\x{6b63}\x{5e38})\x{4e8e}\x{662f}\x{ff1a}
1\x{ff0c}\x{4fee}\x{6539}TWiki/Render.pm\x{6587}\x{4ef6}\x{ff1a}
\x{627e}\x{5230}\x{51fd}\x{6570}\x{ff1a}
sub makeAnchorName {

\x{5728}\x{51fd}\x{6570}\x{672b}\x{5c3e}\x{4fee}\x{6539}\x{8fd4}\x{56de}\x{503c}\x{4e3a}\x{ff1a}

return urlEncode($anchorName);


\x{63a5}\x{7740}\x{5728}\x{8be5}\x{51fd}\x{6570}\x{540e}\x{9762}\x{52a0}\x{4e0a}\x{51fd}\x{6570}urlEncode\x{ff1a}

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


2\x{ff0c}\x{4fee}\x{6539}TWiki.pm\x{6587}\x{4ef6}\x{ff1a}
\x{627e}\x{5230}\x{51fd}\x{6570}\x{ff1a}

sub _make_params {

\x{4fee}\x{6539}\x{ff1a}

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

\x{4e3a}

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

\x{5373}\x{53ef}\x{3002}

\x{8be6}\x{60c5}\x{89c1}\x{ff1a}http://my.huhoo.net/archives/2008/08/twiki422bug.html

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

ItemTemplate
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
Checkins

TargetRelease n/a
ReleasedIn

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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback