< > characters in UTFtoHTML converter [FIXED?]

already fixed bugs

Moderator: AniDB

Locked
Vortex
Posts: 30
Joined: Sat Jun 19, 2004 7:39 am

< > characters in UTFtoHTML converter [FIXED?]

Post by Vortex »

Just a minor bug I encountered

"<" and ">" are not allowed in the titles as you get this message:

"ERROR: 6 - all non-ASCII characters in titles must be HTML-escaped, please use the UTF8 to HTML converter"

However if you use the converter, it doensn't give you the HTML code thing
i.e.

Code: Select all

> and <
respectively
rowaasr13
Posts: 415
Joined: Sat Sep 27, 2003 4:57 am

Post by rowaasr13 »

Well, converter changes only non-ASCII (higher than 127) symbols, so it works as expected. I don't think symbols like " or < > should be handled in converter, instead AniDB should change them, since they can appear in non-unicode titles as well.
analogued
Posts: 54
Joined: Mon Jul 12, 2004 6:53 am

Post by analogued »

rowaasr13, since you seem to be the coder of the utf8tohtml script... any idea about this bug? http://www.anidb.net/forum/viewtopic.php?t=1514

sorry for hijacking the thread :oops:
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

rowaasr13 wrote:Well, converter changes only non-ASCII (higher than 127) symbols, so it works as expected. I don't think symbols like " or < > should be handled in converter, instead AniDB should change them, since they can appear in non-unicode titles as well.
100% agreed, anidb form fields are currently poorly escaped.
To be honest the utf8tohtml conversion should be run on all fields along with a symbol to html conversion (& " ' < >).
rowaasr13
Posts: 415
Joined: Sat Sep 27, 2003 4:57 am

Post by rowaasr13 »

analogued wrote:any idea about this bug? http://www.anidb.net/forum/viewtopic.php?t=1514
I'll look into that.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

might be fixed now.

BYe!
EXP
Locked