Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: Special character are not correctly saved as UTF8 in Piwik Table “log_action”

$
0
0
@Micha, feel free to open a ticket at dev.piwik.org.

I tracked a new request for Piwik in the Chrome console:

_paq.push(["setDocumentTitle", "Ä"])
_paq.push(["trackPageView"])

The result in the DB is:

mysql> SELECT name, hex(name) FROM piwik_log_action WHERE hex(name) = 'C383C2A4' OR hex(name) = 'C384' ORDER BY idaction DESC LIMIT 0,10;
+------+-----------+
| name | hex(name) |
+------+-----------+
| Ä    | C384      |
+------+-----------+
1 row in set (0.00 sec)

You can even see the correct character in the tracking request:

http://localhost:8080/piwik.php?action_name=%C3%84&idsite=3&rec=1&r=808189&h=18&m=18&s=29&url=http%3A%2F%2Flocalhost%3A8080%2Findex.html&_id=1d5a94014da8618c&_idts=1363627110&_idvc=1&_idn=1&_refts=0&_viewts=1363627110&pdf=1&qt=1&realp=0&wma=1&dir=0&fla=1&java=1&gears=0&ag=0&cookie=1&res=1920x1200

See the action_name=%C3%84?

I think that your content management system already broke the "Ä" or the tools you use are not producing correct UTF-8 characters.

Viewing all articles
Browse latest Browse all 13117

Trending Articles