php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26960 setlocale (LC_CTYPE, 'tr_TR') problem
Submitted: 2004-01-19 04:35 UTC Modified: 2004-01-19 13:26 UTC
From: robo at baykus dot com Assigned:
Status: Not a bug Package: *Languages/Translation
PHP Version: 4.3.4 OS: Windows XP Pro EN
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: robo at baykus dot com
New email:
PHP Version: OS:

 

 [2004-01-19 04:35 UTC] robo at baykus dot com
Description:
------------
setlocale (LC_CTYPE, 'tr_TR');
echo strtolower("T?RK?E KARAKTERLER ???N ??Z?M");

The output must be:

t?rk?e karakterler i?in ??z?m

But there is a problem:

t?rk?e karakterler ???n ??z?m


Is there any solution?




Reproduce code:
---------------
<?php
setlocale (LC_CTYPE, 'tr_TR');
echo strtolower("T?RK?E KARAKTERLER ???N ??Z?M");
?>

Expected result:
----------------
t?rk?e karakterler i?in ??z?m

Actual result:
--------------
t?rk?e karakterler ???n ??z?m

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-19 13:26 UTC] sniper@php.net
Use the correct locale. (they're different in windows!)
For turkish it's, surprisinly, 'turkish'. (or 'trk')


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC