Bug #52568 [Opn->Fbk]: Weird length in the end of the string
| From: | pajoye@php.net | Date: | Mon, 09 Aug 2010 08:38:49 +0000 |
| Subject: | Bug #52568 [Opn->Fbk]: Weird length in the end of the string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153277@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52568&edit=1
ID: 52568
Updated by: pajoye@php.net
Reported by: hananassis at walla dot com
Summary: Weird length in the end of the string
-Status: Open
+Status: Feedback
Type: Bug
Package: *Unicode Issues
Operating System: CentOS
PHP Version: 5.2.14
Block user comment: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-08-09 10:36:50] hananassis at walla dot com
Description:
------------
For some reason, when you try to cut the string (in hebrew lenguage at
least) sometimes you get a wierd box (�) at the end of the string.
the file the database working under UTF-8.
when you test the function at windows-1255 everythings fine.
Test script:
---------------
<?php
echo "<hr />";
echo trim(substr($string,0,10)).'...';
echo "<hr />";
?>
Expected result:
----------------
Not to see the weird box at the end of the string.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52568&edit=1