Raised This Month: $ Target: $400
 0% 

[L4D] PounceRecord 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
n0limit
Senior Member
Join Date: May 2009
Old 08-03-2009 , 14:34   Re: [L4D] PounceRecord 1.1
Reply With Quote #21

Guys, try setting the pouncer and pounced column's charset to utf8, which is the default for the game.
They're on latin1 by default, which I think causes the problem.
If that still doesn't work, I can try to set it from inside the SP.
n0limit is offline
fpsbrian
Senior Member
Join Date: Feb 2008
Old 08-03-2009 , 23:42   Re: [L4D] PounceRecord 1.1
Reply With Quote #22

Of coarse I don't get this, I'm sorry can please explain in noob terms?
__________________
fpsbrian is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 08-04-2009 , 02:57   Re: [L4D] PounceRecord 1.1
Reply With Quote #23

He's saying change the charset in your MySQL table in which the pouncerecord dbs/tables are found. Change the columns which records the pouncer and pounced names to charset UTF-8. The charset encoding is Latin1 by default, which does not recognize those weird characters.

Go ask your web provider to do it if you completely didn't get what I said.
__________________
Whosat is offline
fpsbrian
Senior Member
Join Date: Feb 2008
Old 08-04-2009 , 15:03   Re: [L4D] PounceRecord 1.1
Reply With Quote #24

I'm sorry it's still not displaying correctly...
Even if I edit the table, it shows question marks
for the special characters.
__________________

Last edited by fpsbrian; 08-04-2009 at 15:08.
fpsbrian is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-04-2009 , 15:42   Re: [L4D] PounceRecord 1.1
Reply With Quote #25

Yeah, I've tried all kinds of encodings on the tables, and no luck with the special characters.

For one of my plugins, I have the table set to utf8_unicode_ci, and as you can see here, it doesn't work how we want it to.

Last edited by crazydog; 08-04-2009 at 15:45.
crazydog is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 08-04-2009 , 17:36   Re: [L4D] PounceRecord 1.1
Reply With Quote #26

The players will have to re-join the server I think
__________________
Whosat is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-05-2009 , 01:21   Re: [L4D] PounceRecord 1.1
Reply With Quote #27

Quote:
Originally Posted by Whosat View Post
The players will have to re-join the server I think
I changed that table's encoding a few weeks ago, and that is data starting from just yesterday.

Got the answer: http://forums.alliedmods.net/showthread.php?t=99408

Last edited by crazydog; 08-05-2009 at 04:37.
crazydog is offline
n0limit
Senior Member
Join Date: May 2009
Old 08-05-2009 , 13:39   Re: [L4D] PounceRecord 1.1
Reply With Quote #28

Quote:
Originally Posted by crazydog View Post
I changed that table's encoding a few weeks ago, and that is data starting from just yesterday.

Got the answer: http://forums.alliedmods.net/showthread.php?t=99408
Well, thanks for doing the legwork for me. I'll add that command to the plugin as well on the next update.
n0limit is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-05-2009 , 16:05   Re: [L4D] PounceRecord 1.1
Reply With Quote #29

I needed it for my own plugin too. No worries!
crazydog is offline
n0limit
Senior Member
Join Date: May 2009
Old 08-05-2009 , 16:57   Re: [L4D] PounceRecord 1.1
Reply With Quote #30

I don't have a chance to test this, so could one of you guys? I'd be most indebted

I just added
Quote:
if(hDb == INVALID_HANDLE)
LogError("Unable to connect to the specified host for the database configuration named %s.",configName);
else
SQL_TQuery(hDb,SqlPounceCallback,"SET NAMES 'utf8'");
Attached Files
File Type: sp Get Plugin or Get Source (pouncerecord.sp - 632 views - 4.6 KB)
n0limit is offline
Reply



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 -4. The time now is 13:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode