插入阿拉伯值I有这样的代码在Drupal 6检索从Oracle DATABSE阿拉伯值:Oracle连接检索或从数据库
<?php
session_start();
$conn=oci_connect('localhost','pass','IP....');
$stid=oci_parse($conn,"select arabic_name from arabic_names_table");
oci_execute($stid);
if($row-oci_fetch_array($stid,OCI_ASSOC+OCI_RETURNS_NULLS))
{
$name_ar=$row['arabic_name'];
}
?>
当值是从DB中检索或插入到它们看起来像的DB这个 ???
请注意:
- 我的Oracle数据库读取正常阿拉伯字符。从PL/SQL我可以插入阿拉伯值
- 我已经安装了mbstring
- 我已启用utf-8编码。
我该如何解决这个问题?
什么是数据库字符集?什么是国家字符集? “ARABIC_NAMES_TABLE”中的数据类型是“ARABIC_NAME”? – 2012-01-30 20:44:56
除了Justin的问题,您是否在连接到Oracle之前在客户端环境中设置了NLS_LANG环境变量? – 2012-01-31 01:30:28
这可能会有所帮助:http://stackoverflow.com/questions/4295866/arabic-characters-in-oracle-database – alfasin 2012-02-24 00:36:37