andeedee / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

Double-byte characters in the URL #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have some URLs with double-byte characters in it:
search.php/keyword/日本語キーワード

2. Use GAPI to fetch the getPagePath() value

3. Try to insert that value into a utf8_bin MySQL database

4. Inserted value will become garbled:
search.php/keyword/蕭???傑??膰削終/

5. Try to convert the encoding of getPagePath() using mb_convert_encoding, 
using endless combinations of mb_detect_order and other mbstring functions. No 
dice!

What is the expected output? What do you see instead?
getPagePath() value is UTF-8 encoded, and can contain characters from any 
language

What version of the product are you using? On what operating system?
GAPI 1.3
Linux Debian Squeeze
PHP 5.3

No matter what I do, I cannot get the Japanese portions of getPagePath() 
correctly. 

Original issue reported on code.google.com by buraku...@gmail.com on 19 May 2012 at 2:58