You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the title is clipped and I see iconv errors in the logs.
The best I can figure out is that the code for mb_ucfirst in StringHelper.php isn't considering UTF-8 at all and comes back saying my string is ISO-8859-1 encoded.
another data point -- it has to do with the style sheet chosen, because if I switch to ieee, the problem goes away. But I need MLA style, so I'm a little stuck.
I'm having the same issue (I'm using a ready Docker container), looks like it's something related to the environment/installation, try to run the code below, if you get an error, then this issue can be probably closed, as it's something on your end:
Please follow the general troubleshooting steps first:
Bug reports:
Hello --
Not sure if this is an issue or not, but I'm using this library in a module I'm creating for Drupal 8 and seeing string conversion errors.
Namely, if I ask for a MLA formatted bibliography of the CSL metadata data below, I get
Notice the title is clipped and I see
iconv
errors in the logs.The best I can figure out is that the code for
mb_ucfirst
in StringHelper.php isn't consideringUTF-8
at all and comes back saying my string isISO-8859-1
encoded.Drupal log:
The code that Drupal is running is here:
mb_string::mb_detect_encoding
And that won't consider
UTF-8
unless it's in the handed in explicitly in the list. If I put it in the list, things work well.But maybe it's something else in my setup?
Drupal 8.9.14
PHP 7.2.27
Used CSL stylesheet:
modern-language-association
Used CSL metadata
The text was updated successfully, but these errors were encountered: