I have this error...
warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/drupal_site/sites/all/modules/l10n/l10n_client/l10n_client.module on line 306
when the modulo l10n_client is active in a web whit currency api

in the currency api module ( http://drupal.org/project/currency ) there are a list of currency propierties like

array(

'DZD' => array('name' => t('Algerian Dinar (DZD)'), 'symbol' => t('دج'), 'decimals' => 2),
.....

the l10n module want to traslate this simbols and in the line 306
$source = $values[0] === TRUE ? '' : htmlspecialchars($values[0], ENT_NOQUOTES, 'UTF-8');

crash...

I dont know how solver the problem and comment this lines in currency module.

att
rmp

Comments

amateescu’s picture

Status: Active » Needs review
StatusFileSize
new30.97 KB

The fix for this module would be to not wrap currency symbols with t().

Also, I don't think that translating those symbols is the right thing to do in the first place since they are already in their respective language.

amateescu’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.