[CGI] Editing episode garbles kanji title [FIXED]

already fixed bugs

Moderator: AniDB

Locked
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

[CGI] Editing episode garbles kanji title [FIXED]

Post by PetriW »

Well, editing episodes will always make the kanji title change.
Example: http://anidb.ath.cx/perl-bin/animedb.pl ... edit=23124
(check creq history)

This is caused by the API not escaping the & in the html encoded characters.

Mods can go around it but mistakes are bound to happen if it remains, if nothing else user might misunderstand and think they don't need to utf-8 to html convert the kanji signs.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

indeed, i will look into that @ cgi.

you confused me a little by talking about the API there.
does this bug report also concern the API?

BYe!
EXP
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

I guess by API I mean CGI, sorry. The API works correct for these things since the only garbling it does is through the character set and we know about that already.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

hm, it seems that this is browser dependend.
i.e. using opera the kanji characters are in deed shown in their decoded form, however opera will still submit the correctly encoded form to anidb.

but you're right of course, this is bound to confuse people.

BYe!
EXP
pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Post by pelican »

exp wrote:hm, it seems that this is browser dependend.
i.e. using opera the kanji characters are in deed shown in their decoded form, however opera will still submit the correctly encoded form to anidb.
If Opera does that, it is quite badly broken with respect to the standards.
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Hmm, my Opera didn't do that last time i checked. (Aka last time I like an idiot forgot to html encode my kanji!)
pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Post by pelican »

PetriW wrote:Hmm, my Opera didn't do that last time i checked. (Aka last time I like an idiot forgot to html encode my kanji!)
That's a different situation, and it might handle them differently if, for example, it only decodes character entities for display, leaving them in their original form in internal structures (which is clearly wrong, of course).
pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Post by pelican »

NOTE: this is still very, _very_ broken, annoying as hell and child's play to fix.

Hint: what is wrong with the following code (in an appropriate form) if you intend to send the HTML coded entities you can see here by default?

Code: Select all

<input name="kanji" value="&#39340;&#40575;&#12391;&#12377;">
(If it helps at all, you're not the only one who isn't properly dealing with this; phpBB, or at least the version here, doesn't either.)
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

But we all knew phpbb is crap... right?
Locked