Raised This Month: $51 Target: $400
 12% 

[REQ,HELP] Retrive strings from an sql base into a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-08-2012 , 16:26   Re: [REQ,HELP] Retrive strings from an sql base into a plugin
Reply With Quote #11

Try this:

If you already have the table created, perform this query in the database:
ALTER TABLE ad_manager MODIFY advertisement VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin;
Attached Files
File Type: sma Get Plugin or Get Source (ad_manager_sql_utf8.sma - 383 views - 9.5 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Swear
Junior Member
Join Date: May 2009
Location: Latvia
Old 03-08-2012 , 16:38   Re: [REQ,HELP] Retrive strings from an sql base into a plugin
Reply With Quote #12

I mean database is okay, it displays and stores utf-8 symbols as it should, but ad_manager displays only ? marks where unicode symbols should be. I guess it uses SET NAMES latin1 by default, so it needs set names utf8 query, before selecting data.
Swear is offline
Send a message via Skype™ to Swear
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-01-2013 , 09:21   Re: [REQ,HELP] Retrive strings from an sql base into a plugin
Reply With Quote #13

Can someone fix this? In database it's all ok, but when it comes to printing, it shows ? where UTF8 special symbols are.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
pupil0888
Member
Join Date: Sep 2012
Location: Venezuela
Old 11-12-2014 , 20:47   Re: [REQ,HELP] Retrive strings from an sql base into a plugin
Reply With Quote #14

as I get to run this plugin ad_manager_sql for multiple servers? where should I place the messages? that host must create the table?
pupil0888 is offline
Send a message via MSN to pupil0888
VINAGHOST
Member
Join Date: Aug 2016
Location: Việt Nam
Old 08-03-2019 , 06:48   Re: [REQ,HELP] Retrive strings from an sql base into a plugin
Reply With Quote #15

sorry for reviving the post

When plugin show in the screen it replaces Unicode character to ?
But in the database, it's okay.

Can anyone help me?
VINAGHOST 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 04:30.


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