#30333 [Fbk]: fscanf() and() not working correctly with other then English language
From: tony2001@php.net Date: Wed, 06 Oct 2004 08:02:22 +0000 Subject: #30333 [Fbk]: fscanf() and() not working correctly with other then English language References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-67172@lists.php.net to get a copy of this message
ID: 30333 Updated by: tony2001@php.net Reported By: altuhov at nm dot ru Status: Feedback Bug Type: Filesystem function related Operating System: WinXP SP2 PHP Version: 5.0.2 New Comment: Btw, your example works perfectly for me (PHP 4.3.10-dev, 5.0.3-dev, 5.1-dev, Linux, locale ru_RU.koi8r). Previous Comments: ------------------------------------------------------------------------ [2004-10-06 08:54:36] derick@php.net This example is useles, as we don't know which encoding you are using. Please put this script in a zip file and provide the link to it in this bugreport. ------------------------------------------------------------------------ [2004-10-06 05:05:56] altuhov at nm dot ru Description: ------------ Functions fscanf() and sscanf() is not working correctly with other then English language in the handle. In my example was used Russian language. Reproduce code: --------------- <?php $cont="Ïðîâåðêà Òåñòèðóþ ÎäèíÄâàÒðè"; // get author info and generate DocBook entry $n = sscanf($cont,"%s %s %s"); print_r($n); ?> Expected result: ---------------- Array ( [0] => Ïðîâåðêà [1] => Òåñòèðóþ [2] => ÎäèíÄâàÒðè ) Actual result: -------------- Array ( [0] => Ïð [1] => âåð [2] => à ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30333&edit=1
Thread (14 messages)
- #30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- #30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- #30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- #30333 [Com]: fscanf() and() not working correctly with other then English language
- #30333 [Com]: fscanf() and() not working correctly with other then English language
- #30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- #30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- #30333 [Fbk->NoF]: fscanf() and() not working correctly with other then English language
| « previous | php.bugs (#67172) | next » |
|---|