SA-MP Forums Archive
mysql encoding - polish letters problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: mysql encoding - polish letters problem (/showthread.php?tid=614081)



mysql encoding - polish letters problem - Sielly - 04.08.2016

Hello,

im using this plugin (mysql_static.so):
https://sampforum.blast.hk/showthread.php?tid=56564

and i have got a problem with encoding. i have got on my ongamemodeinit:
Код:
	//Połącz z MySQL
	mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
	g_SQL = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);

	//send a query to recieve all the stored player data from the table
	mysql_set_charset("utf8",g_SQL);
	mysql_query(g_SQL, "SET NAMES utf8");
And i still cannot use polish letters on mysql.
I know there is a problem with samp because i have got website hosted on the same server and database and everything works fine.

Can anybody help me?


Re: mysql encoding - polish letters problem - vannesenn - 04.08.2016

Which charset you've set when you created a table in PhpMyAdmin?


Re: mysql encoding - polish letters problem - MaazS - 04.08.2016

dzen dobry
easy fix: don't use the polish characters?


Re: mysql encoding - polish letters problem - Sielly - 05.08.2016

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
Which charset you've set when you created a table in PhpMyAdmin?
utf8_unicode_ci


Re: mysql encoding - polish letters problem - Sielly - 07.08.2016

Some body help pls


Re: mysql encoding - polish letters problem - Sielly - 13.08.2016

up help pls


Re: mysql encoding - polish letters problem - Konstantinos - 13.08.2016

http://stackoverflow.com/a/13547308


Re: mysql encoding - polish letters problem - Sielly - 13.08.2016

Didn't help. I think there is problem with plugin, not database. Like i said - website work fine.


Re: mysql encoding - polish letters problem - Sielly - 14.08.2016

Help please


Re: mysql encoding - polish letters problem - Danzou - 28.08.2016

Quote:
Originally Posted by Sielly
Посмотреть сообщение
Didn't help. I think there is problem with plugin, not database. Like i said - website work fine.
i sent a private msg, may be help..