php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48160 the arabic language does not appear in drop down list
Submitted: 2009-05-06 08:48 UTC Modified: 2009-05-06 13:36 UTC
From: aminay1986 at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.9 OS: windows 7/xp/vista
Private report: No CVE-ID: None
 [2009-05-06 08:48 UTC] aminay1986 at hotmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-06 13:36 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 01 20:00:01 2025 UTC