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
 [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: Fri Apr 19 22:01:28 2024 UTC