From:             aminay1986 at hotmail dot com
Operating system: windows 7/xp/vista
PHP version:      5.2.9
PHP Bug Type:     Dynamic loading
Bug description:  the arabic language does not appear in drop down list

Description:
------------
the code is Ajax Country/Area Drop-down List Example but on oracle not on
mysql , the code must appear the area or on my code subcategory drop down
list in Arabic but it is appear as stars ,you make encode as windows 1256
and utf-8 and does not appear what the solution,if there is a solution for
populate drop down list from another on oracle send to me,thanks for
interest

Reproduce code:
---------------
 <?php

    // This is a very simple data provider for the cascading dropdown
    // example. A *real* data provider would most likely connect to
    // a database, use xslt and implement some level of security.
    Header("Content-type: text/xml");
    // get query string params
        //$filter = $_GET['filter'];
    $filter  = 1;
        $xml = '';
    $iscountry = 1;
//   // build xml content for client JavaScript
    $conn =
oci_connect("mohammadabed","0599397083","172.16.209.23:1521/XE") or
die("couldnot conncet to database");

        $query = "SELECT * from DOC_categories where ID_PERANT_DOC_CATEGORIES =
'$filter'";

    $stmt = oci_parse($conn ,$query);
    oci_execute($stmt);
    while ($row = oci_fetch_array ($stmt, OCI_BOTH))
    {
                if ($iscountry == 1)
                {
                $xml = $xml . '<continent name="' . $filter . '">';
                }
        $xml  = $xml . '<country id="' . $iscountry . '">' .   $row[1] .
'</country>';
      // $xml= convert_uuencode($xml);
        //echo "the value is ".$row[1];
                $iscountry = $iscountry + 1;
        }
        $xml = $xml . '</continent>';

        if ($iscountry == 1)
        {
        $xml = $xml . '<continent name="none">';
        $xml = $xml . '<country id="0">no element found</country>';
        $xml = $xml . '</continent>';
        }
    // send xml to client
        echo ($xml);

    ?>



Expected result:
----------------
the second drop down list appear in Arabic as in database

Actual result:
--------------
the second drop down list appear in stars or asterisks not as in database

-- 
Edit bug report at http://bugs.php.net/?id=48160&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48160&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48160&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48160&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48160&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48160&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48160&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48160&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48160&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48160&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48160&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48160&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48160&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48160&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48160&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48160&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48160&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48160&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48160&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48160&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48160&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48160&r=mysqlcfg

Reply via email to