This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy.
FAQ

We provide webhosting for thousands of domains.
Transfer your domains to us and join our satisfied customers.

Domains from 5,99€. Renewal for the same price.

Support

FAQ

Others

HOTLINE  
+421 221 028 430
E-MAIL support
support@exohosting.com
ICQ support
213 057 503
ONLINE support

Mo-Fr: 08:00-20:00
Sa-Su: 10:00-18:00

Economy

Mo-Fr: 08:00-16:30

Free transfer of .sk domain

If you transfer your domain to us, we pay transfer fee for you.

Slovak / Czech encoding in MySQL 4.1

seen: 1443 | Date added: 05.09.2010 | rating:
"

MySQL 4.1 differs from its predecessor MySQL 4.0 in the way it processes encoding and if you want it to work correctly you may need to alter some settings.

To do this:

1. set your default collation in db admin for the database (you can omit this step when using windows-1250 encoding). Log in to db admin and in the left menu click on the name of your database, then click Operations and at the very bottom there is the collation menu, where you can choose your encoding.

2. when importing a database you have to choose a correct encoding of the imported file:

cp1250  = windows-1250
iso-8859-2 = latin2

3. the scripts you use to connect to your database should determine the encoding that will be used for the communication with the database.

Windows-1250 (cp 1250) is the default setting. To use another encoding, you can use these queries, which should be run immediately after you have logged in to your database:

mysql_query(""SET character_set_results=kodovanie"");
mysql_query(""SET character_set_connection=kodovanie);
mysql_query(""SET character_set_client=kodovanie"");

"
Was this article helpful?
no
Hodnotenie 2.73/5 (679 hlasov)
yes

Related topics