Hello,

for data comes from GA with non-english links we faced this erroro:
General error: 1366 Incorrect [error] string value: '\xF0\x9F\x98\x9C\xF0\x9F...' for column 'pagepath' at google_analytics_counter_data.inc
line 85

Regards

Comments

drpl’s picture

Please find attached patch

drpl’s picture

Status: Needs work » Needs review
drpl’s picture

Assigned: drpl » Unassigned
moehac’s picture

I had same issue and had created a much more complex patch for this problem.

I'm glad to have found this post with a simple solution. Thanks @drpl!

drpl’s picture

Status: Needs review » Reviewed & tested by the community

Thank you @moehac, yes this cause lots of issues for non-english sites (links) I hope this patch to be merged.

jyrkih’s picture

Updated patch against version 7.x-3.1. utf8_encode() is still needed to remove for example emojis.

Status: Reviewed & tested by the community » Needs work
ooystein’s picture

Status: Needs work » Reviewed & tested by the community

We re-rolled the patch in #1 and got the same result as jyrki. We have used the patch for several months on multiple multilingual site and have not experienced any problems with it. Lets merge it please.

  • Vacilando committed dacb5c0 on 7.x-3.x authored by jyrki
    Issue #2382319 by drpl, jyrki: 1366 Incorrect [error] string value
    
vacilando’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks, guys. Change pushed to 7.x-3.x.

Could you please verify and confirm here before I make a new stable version.

moehac’s picture

Works perfect for us. Will you combine it https://www.drupal.org/node/2500923#comment-10905568?

Status: Fixed » Closed (fixed)

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

vacilando’s picture

OK, pushed to 7.x-3.3.