Results 1 to 7 of 7
-
01-03-2011, 12:48 #1
-= TeamSpeak User =-
- Join Date
- Jan 2009
- Location
- Germany
- Posts
- 19
Does TS3 write Latin1 Strings into UTF8 MySQL-DB?
Hi,
i have the feeling, that TS3 writes Latin1 encoded Strings into the UTF8 MySQL DB.
Because, when i open a table with SQLyog or get a row with php. The strings are not
in UTF8 chars, but Latin1!
Attachment 4624
Thanks
Last edited by seriouz; 02-03-2011 at 00:15.
-
04-08-2011, 14:46 #2
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,763
TS writes UTF8 into your databse, but Latin1 is a MYSQL setting from your database.
---------------------------------------------------------
Please don't send me private support questions.
They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
13-04-2012, 10:59 #3
-= TeamSpeak User =-
- Join Date
- Aug 2011
- Posts
- 11
Hi, what should I do to have UTF-8 encoded data in my MySQL database?
The DB uses utf8_general_ci collation. And here are some variables:
Code:character_set_client utf8 character_set_connection utf8 character_set_filesystem binary character_set_results utf8 character_set_system utf8 collation_connection utf8_general_ci
-
13-04-2012, 13:08 #4
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,038
when using PHP make sure to set the Connection Encoding to UTF8 before writing / selecting anything from the Database.
http://de3.php.net/manual/en/mysqli....r-set-name.php
http://de3.php.net/mysql_set_charset
-
13-04-2012, 21:54 #5
-= TeamSpeak User =-
- Join Date
- Aug 2011
- Posts
- 11
Yes, I know it. But in my case I use
to get text in normal view. If I useCode:mysql_set_charset('cp1251');I have non-correct text. I don't know what's wrong with the db, any ideas?Code:mysql_set_charset('utf8');
How can I understand what charset/collation is used by TS3 server?
-
21-04-2012, 00:50 #6
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,038
You have incorrect Text where? When you output it to the browser?
If so keep in mind that you also need to send a Content-Type header in order to specify the Charset to be used by the browser, which will otherwise use whatever the system's default is (which obviously varies in different parts of the world).
The Database Tables and Fields should all be utf8 and the entire Server & Client are using and expecting UTF8 encoded Strings all over the place.
-
23-04-2012, 18:16 #7
-= TeamSpeak User =-
- Join Date
- Aug 2011
- Posts
- 11
I use binary encoding to solve the problem. Using UTF-8 saves data incorrectly at the database.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
No write rights
By Conreason in forum Permission SystemReplies: 8Last Post: 12-02-2010, 22:45 -
TS3 can not write my config
By DarkSiZe in forum WindowsReplies: 2Last Post: 21-12-2009, 12:32 -
CHARACTER SET (cp1251 OR UTF8)
By enigmas in forum [TeamSpeak 2] Server SupportReplies: 11Last Post: 31-12-2006, 05:43 -
cant write to c:\\server.ini
By knipex in forum [TeamSpeak 2] Server SupportReplies: 3Last Post: 14-10-2002, 14:20


Reply With Quote