V 2.7 beta 3 Multibyte strings become ???? on URL verifier

Please report bugs here!

Moderator: Thorsten

Post Reply
hiromisuzuki
Posts: 5
Joined: Mon Aug 22, 2011 1:07 pm

V 2.7 beta 3 Multibyte strings become ???? on URL verifier

Post by hiromisuzuki »

Hi,

I noticed display problem of URL verifier.

When I add or edit FAQ and save it, then phpMyFAQ display output of URL verifier.
But it was corrupted as ??????????. I confirmed it with Arabic,Chinese,Hindi and Japanese.

I check inc/LinkVerifier.php near line 901, the string was decoded.
// If no URLs found
if ($result == false) {
$output = sprintf('<h2>%s</h2><br />%s',
$PMF_LANG['ad_linkcheck_checkResult'],
$PMF_LANG['ad_linkcheck_noLinksFound']);
return ($cron ? '' : utf8_decode($output));
}
So, I changed it to below, then phpMyFAQ display correctly.
return ($cron ? '' : $output);

There are two utf8_decode() in same file, I think these are not needed to display multibyte strings.

Best regards,
Hiromi Suzuki
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: V 2.7 beta 3 Multibyte strings become ???? on URL verifi

Post by Thorsten »

Hi,

yes, I already fixed one of them. Thanks for the hint!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply