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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC