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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 20 00:01:27 2024 UTC