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

SetCharset("utf8mb4") not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
emsit
Member
Join Date: Apr 2015
Old 02-24-2018 , 19:12   SetCharset("utf8mb4") not work
Reply With Quote #1

I am using MariaDB 10.2 with a table created with utf8mb4 charset. Once connected I have set
PHP Code:
hDatabase.SetCharset ("utf8mb4"); 
But it does not work. After shifting to
PHP Code:
hDatabase.SetCharset ("utf8"); 
utf-8 is working but 4-bytes utf-8 does not work. When using
PHP Code:
SQL_FastQuery (hDatabase"SET NAMES 'utf8mb4'"); 
4-bytes utf-8 is working, but it's not 100%.

Do you know any reliable solution for connecting sourcemod and MySQL with utf8mb4?
__________________


Last edited by emsit; 02-24-2018 at 19:31.
emsit is offline
smast
AlliedModders Donor
Join Date: Aug 2012
Old 02-25-2018 , 05:39   Re: SetCharset("utf8mb4") not work
Reply With Quote #2

You can test this MySQL extension: https://forums.alliedmods.net/showpo...73&postcount=1

Or you build SourceMod against MySQL 5.6

Last edited by smast; 02-25-2018 at 05:40.
smast 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 10:44.


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