Papuass
01-03-2008, 10:39 PM
I was having problems with certain Latvian characters - lowercase "ā","č" and "ō", to be specific.
It is due to the configuration of my server and database, as I tested these characters on different public pixelpost blogs and they were working correctly (sorry for spam).
In the end I found a solution, I added some lines to functions.php file:
Before
if(!mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass)) {
if($request_uri == 'admin') {
header("Location: install.php?view=db_fix");
exit;
}else{
show_splash("Connect DB Error: ". mysql_error()." Cause #2",$dir);
}
}
After
if(!mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass)) {
if($request_uri == 'admin') {
header("Location: install.php?view=db_fix");
exit;
}else{
show_splash("Connect DB Error: ". mysql_error()." Cause #2",$dir);
}
} else {
mysql_query("SET NAMES 'utf8'");
}
Could someone form devs check out this and maybe include it in codebase as it seems pretty safe change?
These issues were also for version 1.5 and 1.6.
It is due to the configuration of my server and database, as I tested these characters on different public pixelpost blogs and they were working correctly (sorry for spam).
In the end I found a solution, I added some lines to functions.php file:
Before
if(!mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass)) {
if($request_uri == 'admin') {
header("Location: install.php?view=db_fix");
exit;
}else{
show_splash("Connect DB Error: ". mysql_error()." Cause #2",$dir);
}
}
After
if(!mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass)) {
if($request_uri == 'admin') {
header("Location: install.php?view=db_fix");
exit;
}else{
show_splash("Connect DB Error: ". mysql_error()." Cause #2",$dir);
}
} else {
mysql_query("SET NAMES 'utf8'");
}
Could someone form devs check out this and maybe include it in codebase as it seems pretty safe change?
These issues were also for version 1.5 and 1.6.