Raised This Month: $ Target: $400
 0% 

SetCharset("utf8mb4") not work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 23:11.


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