Closed (fixed)
Project:
phpBB2Drupal
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2007 at 04:06 UTC
Updated:
3 Feb 2008 at 23:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickWhoops. Forgot about comment titles as well. And this is probably a better approach.
Comment #2
beginner commentedcommitted. thanks.
Comment #3
(not verified) commentedComment #4
naheemsays commentedIn http://drupal.org/node/67068#comment-688227 I wrote:
and:
Beginner replied:
I think the first approach from the two patches should fix this. I will need to test it later on.
Comment #5
naheemsays commentedJust tested a removing this patch but no luck. I think it may just be some corrupted data on my end.
Comment #6
beginner commentedWhere do you have the problem?
In the node title or within the node body?
In Drupal, html entities are not allowed within the title.
Comment #7
naheemsays commentedWithin the body.
I tried to change it so that only the html entities are escaped for the titles (like the first patch, but also for comments, polls etc), but not for the node body.
I do not get this everywhere, but one specific post in my test database (of about 110,000 posts... so there may be more, but this does not happen everywhere), It may just be data corruption.
Comment #8
naheemsays commentedThe original (committed) patch output the characters to an iso-8859-1 encoding by default - iso-8859-1 cannot correctly store special characters.
$text = html_entity_decode($text, ENT_QUOTES);Should be
$text = html_entity_decode($text, ENT_QUOTES, 'utf-8');(I also have moved the decoding of html entities to after the conversion of everything as this seems like a safer bet for other encodings.)
This did affect titles too. Fixed in both HEAD and drupal 5.x-3.x-dev branch.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.