StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Bugs

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 02-02-2005, 02:11 PM
jesus2099 jesus2099 is offline
Member
 
Join Date: Dec 2004
Location: Paris / France
Posts: 28
Default Unicode bug

Hello,

In the statistic screens where we can see the pages' <title>, the list is not displaying correctly when one uses international characters or even accentuated latin characters.

When we have a look at the source code of thise page (keyword.php) we see this:
Code:
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1">
For correct display, it should be:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
This would not cause any trouble to non unicode browser and this would display correct characters in unicode browsers.

You can have a look at this thread for some more information.
  #2  
Old 02-28-2005, 10:11 AM
jesus2099 jesus2099 is offline
Member
 
Join Date: Dec 2004
Location: Paris / France
Posts: 28
Default

Will this easy issue ever be solved?
I would thank you very much for that.
Well maybe it's not that easy?
On my pages, I just had to specify the correct charset [utf-8] and that was all.
  #3  
Old 09-22-2005, 02:43 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

Stickied this thread.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #4  
Old 09-24-2005, 09:24 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

I am wondering if the database would also need to be modified in order to alllow UTF-8 characters to be stored and retrieved corectly. And how this will affect everything else. I expect it would require a conversion of currently contained data.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #5  
Old 09-25-2005, 09:53 AM
jesus2099 jesus2099 is offline
Member
 
Join Date: Dec 2004
Location: Paris / France
Posts: 28
Default

Oh yes maybe!
I can help you testing if you want.
Someday, we allready try to put this unicode in place but it didn't work so you rolled back. I don't remember if it was you who tried or someone esle at statcounter.
  #6  
Old 09-25-2005, 06:07 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

That wasn't me, I only just got to be a mod recently.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #7  
Old 10-07-2005, 01:14 PM
moishier moishier is offline
Junior Member
 
Join Date: Sep 2005
Posts: 27
Default

Any updates on fixing this bug?
  #8  
Old 11-20-2005, 02:21 PM
moishier moishier is offline
Junior Member
 
Join Date: Sep 2005
Posts: 27
Default

Still waiting...
  #9  
Old 02-15-2006, 12:11 PM
jesus2099 jesus2099 is offline
Member
 
Join Date: Dec 2004
Location: Paris / France
Posts: 28
Lightbulb New try

Hello again!

May I come bach with some new ideas on this subject?
Here I go.

Last time we tried just to put those stats pages in utf-8.
That was not working. I think tht's maybe because it's just not enough!

Here are some examples (visitorpath1, visitorpath2 and recentkeywords)

In visitorpath1 we can see :
blog-notes: %u30DE%u30F3%u30AC%u30FB%u30CD%u30C3%u30C8%u9928
instead of (I hope this forum is unicode, I don't remember) :
blog-notes: マンガ・ネット館

In visitorpath2 we can see :
blog-notes: Ng%u1ECDc Lan
instead of :
blog-notes: Ngọc Lan

In recentkeywords, we can see / instead of :
¥Þ¥ó¥¬¡¦¥Í¥Ã¥È´Û
マンガ・ネット館
ngỌc lan
Ngọc Lan
réveil automatique
réveil automatique

Then I think myself that maybe we would have to change the counter.js and the server side code that is called by sc_tracking_url. We maybe have to change also the way the sc_tracking_url is constructed.

For information, I have made a sample page demonstrating what is possible to do with javascript and serverside code concerning unicode texts.

In fact I can see that the sc_tracking_url components are already escaped by javascript.

So there may be only the serverside code to modify now.
I don't know if you are PHP or what but, in my samples, I used the utf8_encode function to tell PHP to accept Unicode before putting my texts in the display page. This way I can manipulate either unicode and simple texts (simple texts are not affected by the function)..

So if your database supports utf-8, alright, if not you can use a base64_encode or equivalent to store in database.

So when you want to display stats for the users, you extract from DB ; then base64_decode ; then utf8_encode ; then use charset utf-8 in the stats display page. Maybe I am not very sure, tests should be driven.
I you want I can be of some help, I can test all this if you have php on your serverside...?

Here is a test page that can help for this kind of situation : Test en ligne d'encodages en PHP et javascript

Thanks,
jesus2099

PS: I can't upload the 3 PNG attachments (they are very small). I tried Opera then FireFox in vain.

Last edited by jesus2099; 02-15-2006 at 12:15 PM. Reason: The attachment are missing though I uploaded them (with Opera)
  #10  
Old 02-15-2006, 04:07 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

You cannot upload anything to this forum.

I suspect converting the Statcounter database to a different encoding method would be difficult and would also take long.

Personally I wasn't aware that url's including query strings can be expressed in a non-latin based character set either.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:22 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.