UTF-8 is not supported in reCAPTCHA

UTF-8 is not supported in reCAPTCHA

Issue ID:1790
Issue Category:compatibility
Component:uncategorized
Priority:minor
Status:will not fix
Assigned:evan
Version:0.8
Milestone:0.8

When i enable the plugin, i saw that because of this plugin, utf-8 is disabled somehow. I see weird characters now.

Legacy Data

This issue was migrated from another tracking system. The legacy data at time of import is provided below as a reference.

Ticket ID: 
1790
Reported by: 
blug
Owner: 
evan
Status: 
closed
Resolution: 
willnotfix
Type: 
compatibility
Component: 
uncategorized
Priority: 
4
Version: 
0.8
Milestone: 
0.8

Updates

#1

related #1528

#2

this is broken because the weird style-tag injection in the plugins onStartShowHTML-method, forcing text/html as content-type, not the detected one.

#3

moving the styletag code from onStartShowHTML into onEndRegistrationFormData and removing the onStartShowHTML code completely fixes the bug.

like this:

{{{
function onEndRegistrationFormData($action)
{
$action->elementStart('li');
$action->raw('#recaptcha_area{float:left;}'); // fix
$action->raw('Captcha');
if($this->checkssl() === true){
$action->raw(recaptcha_get_html($this->public_key), null, true);
} else {
$action->raw(recaptcha_get_html($this->public_key));
}
$action->elementEnd('li');
return true;
}
}}}

- or, where should i submit the patch?

#4

The above patch will break safari and chrome as they are strict about xhtml strict. This is a problem with recaptcha not supporting xhtml. It is a known issue and until the library is fixed it will break UTF8.

Login or Register to modify this issue, or to receive updates by email.

You can also subscribe to the RSS feed for updates to this issue.