Hi everyone,
I have an MSSQL 2005 database, with some data in it, some of which is in arabic characters.
Using the MS tools to manage the DB i can see these no problem. I am trying to output this data to a web page.
In the page itself i am just getting ? instead of the arabic.
So far i have found that arabic is character set
ISO-8859-6
or the windows version is
CP1256
In my HTML i have
Then in my action that gets the actual data i am filling up an array for each row found, as follows;-
As you can see on the Series_Name field i am trying to use iconv, but it is not working. I think it is right to use iconv (and i have checked i have it installed and enabled).
Can anyone suggest how to fix this line of code to output the right character set.
Thanks,
I have an MSSQL 2005 database, with some data in it, some of which is in arabic characters.
Using the MS tools to manage the DB i can see these no problem. I am trying to output this data to a web page.
In the page itself i am just getting ? instead of the arabic.
So far i have found that arabic is character set
ISO-8859-6
or the windows version is
CP1256
In my HTML i have
Code:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Then in my action that gets the actual data i am filling up an array for each row found, as follows;-
Code:
$resultArr[$j]['Series_Id'] = odbc_result($result, 'Series_Id');
$resultArr[$j]['Title_Id'] = odbc_result($result, 'Title_Id');
$resultArr[$j]['Series_Name'] = iconv("CP1256", "UTF-8", (odbc_result($result, 'Series_Name')));
As you can see on the Series_Name field i am trying to use iconv, but it is not working. I think it is right to use iconv (and i have checked i have it installed and enabled).
Can anyone suggest how to fix this line of code to output the right character set.
Thanks,