• Welcome to Simple Machines Community Forum. Please login or sign up.

Wrong parsing of UTF characters in board names categories and posts in 1.1 RC2

Started by spiros, December 31, 2005, 07:03:12 PM

Previous topic - Next topic

n3452323

Quote from: CalCal on February 27, 2006, 11:28:25 AM
This helped:

In file Subs-Post.php change

// Put it back together!
if (!$previewing)
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\n" => '<br />', "\xA0" => '&nbsp;'));
else
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\xA0" => '&nbsp;'));


to

// Put it back together!
if (!$previewing)
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\n" => '<br />'));
else
$message = strtr(implode('', $parts), array('  ' => '&nbsp; '));


Anyway, I tested this solution only on localhost because maybe this will mess something else. What are you (developers) think about this?


Thanks, i change and it work on hxxp:yohosting.net/forrum [nonactive]
even the news also resolved.

One again, thanks
hxxp:yohosting.net/foum [nonactive]
No ad - No Post - 100% Free hosting at hxxp:yohosting.net [nonactive]
hxxp:yohosting.net [nonactive]

n3452323

But i found another problem that it ok for the short of massage only. If i post a long message the err happent again all 'à' letter become 'a?'

Anyone can help ?
hxxp:yohosting.net/foum [nonactive]
No ad - No Post - 100% Free hosting at hxxp:yohosting.net [nonactive]
hxxp:yohosting.net [nonactive]

Panagioths

World.gr - Η καθημερινή σας ενημέρωση στο διαδίκτυο
Ειδήσεις, νέα και συζητήσεις σε θέματα κοινωνίας, οικονομίας, πολιτικής,

RMIT

Quote from: CalCal on February 27, 2006, 11:28:25 AM
This helped:

In file Subs-Post.php change

// Put it back together!
if (!$previewing)
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\n" => '<br />', "\xA0" => '&nbsp;'));
else
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\xA0" => '&nbsp;'));


to

// Put it back together!
if (!$previewing)
$message = strtr(implode('', $parts), array('  ' => '&nbsp; ', "\n" => '<br />'));
else
$message = strtr(implode('', $parts), array('  ' => '&nbsp; '));


Anyway, I tested this solution only on localhost because maybe this will mess something else. What are you (developers) think about this?

I tried this and the result is good except one problem: if in your post have any link (without link BBCode Tag) , the charactor "à" become "?" like before patching. So, what can I do now ?

n3452323

The tip (not so nice and cn be tempotary using while waiting for ver1.1 final release) but it resolved the 'à' become '?' is
turn OFF option Automatically link posted URLs

( admin -> Manage Posts and Topics -> Bulletin Board Code Settings )


I think the problem cause by this feature.
hxxp:yohosting.net/foum [nonactive]    
hxxp:yohosting.net/foum [nonactive]
No ad - No Post - 100% Free hosting at hxxp:yohosting.net [nonactive]
hxxp:yohosting.net [nonactive]

Advertisement: