Issue with cyrilic texts with mysql and php

If you get all messy characters, try this after mysql_connect:

$set = @mysql_query (\'SET NAMES CP1251\');
$set = @mysql_query (\'SET COLLATION_CONNECTION=CP1251_GENERAL_CI\');

 

No comments yet

Back to articles list

This page was last modified on 2024-12-05 17:05:27