php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37090 turkish charset
Submitted: 2006-04-15 11:23 UTC Modified: 2006-07-30 11:06 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: muratyilmaz2947 at gmail dot com Assigned: georg (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.1.2 OS: windows xp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: muratyilmaz2947 at gmail dot com
New email:
PHP Version: OS:

 

 [2006-04-15 11:23 UTC] muratyilmaz2947 at gmail dot com
Description:
------------
i want to change charset with these code. but there is problem. and i want to record some information to table (in turkish language). but all turkish charset are ??. i dont know why?

Reproduce code:
---------------
if (!$mysqli->set_charset("latin5")) {
   printf("Error loading character set latin5: %s\n", $mysqli->error);
} else {
   printf("Current character set: %s\n", 
$mysqli->character_set_name());


/* Print current character set */
$charset = $mysqli->character_set_name();
printf ("Current character set is %s\n", $charset);


Expected result:
----------------
Current character set: latin5
Current character set  latin5

Actual result:
--------------
Current character set: latin5
Current character set  latin1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-15 11:36 UTC] muratyilmaz2947 at gmail dot com
ok. but there is a problem in this functions. latin5<>latin1. i hope you could understand.
 [2006-04-15 12:49 UTC] derick@php.net
Georg, it seems his MySQL simply doesn't understand latin5 but shouldn't the function return false then?
 [2006-04-15 15:57 UTC] muratyilmaz2947 at gmail dot com
what can ? do to repair this function or code. it seems working but ?t doesnt. i downloaded libmysql.dll and php_mysqli.dll  version 5.0.18 and copied.
 [2006-07-30 11:06 UTC] georg@php.net
This bug was already fixed in 5.1.3
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 15:01:35 2025 UTC