php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49610 php 5.2.11 has problem with Utf-8 and persian language
Submitted: 2009-09-20 15:37 UTC Modified: 2009-09-28 01:00 UTC
From: voshkan at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.11 OS: centos
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-09-20 15:37 UTC] voshkan at gmail dot com
Description:
------------
http://www.ahuramihan.com/

I recompiled the server with apache 2.2 and noticed the newest version 5.2.11 that mine was 5.2.10 that everything was fine

as I upadated the apache
the tommorow of that day I notice some bug with some of my websites
it was so wondering for me that why not all of the websites are damaged

the problem was that some sites with persian language and Utf-8 encoding would show only the following

??????�???????�??????? ???????�???????�???????�???????�??????? ???????�???????�???????�???????�???????�???????�???????�???????�???????�???????�???????�???????�??????? ???????�???????�??????

but it was so wondering for me that why other sites like this that is in persian language and use joomla like maroonhost.com has not been affected
maybe some kind of plugin in that website that make the numbers also persian has caused

anyway
this site would be working correctly on the php 4 and php 5.2.10 and older

please make me know when you tested the website and tell me to fix it
http://www.ahuramihan.com/

Reproduce code:
---------------
I wont change the website untill you check and tell em you saw and got the info you wanted

the website
http://www.ahuramihan.com/

Expected result:
----------------
with php 5.2.10 and 4 and past versions

the text would be shown is this

موسسه پس از دریافت مجوز فعالیت اقتصادی از مدیریت
سرمایه گذاری سازمان منطقه آزاد تجاری صنعتی قشم
مطابق گواهی نامه صادره از سوی واحد ثبت شرکتها
و مالکیت صنعتی و معنوی  سازمان منطقه آزاد قشم در
تاریخ دهم فروردین ماه سال یک هزار و سیصد و هشتاد
و هفت خورشیدی طی شماره ۴۷ ثبت و فعالیت خود را
با همکاری وکلای پایه یک دادگستری آغاز  نموده است.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-20 15:49 UTC] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2009-09-20 19:52 UTC] pajoye@php.net
Provide a link to a zipped script with UTF-8 encoding and persian texts to reproduce your problem.
 [2009-09-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC