Bug #986: Problem with the german special characters
| From: | ulrich dot steinkopf at debis dot com | Date: | Thu, 10 Dec 1998 16:36:21 +0000 |
| Subject: | Bug #986: Problem with the german special characters | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2748@lists.php.net to get a copy of this message | ||
From: ulrich.steinkopf@debis.com
Operating system: Solaris 2.6
PHP version: 3.0.5
PHP Bug Type: Oracle related
Bug description: Problem with the german special characters
<HTML>
<HEAD>
<TITLE>TEST</TITLE>
</HEAD>
<BODY>
<H1> TEST <H1>
<?php
PutEnv("ORACLE_HOME=/u01/app/oracle/product/7.3.4");
PutEnv("ORACLE_SID=DEVL");
PutEnv("ORA_NLS32=/u01/app/oracle/product/7.3.4/ocommon/nls/admin/data");
PutEnv("NLS_LANG=german_germany");
PutEnv("TNS_ADMIN=$ORACLE_HOME/network/admin");
function str2html($string){
$string=ereg_replace('Ä','Ä',$string);
$string=ereg_replace('Ö','Ö',$string);
$string=ereg_replace('Ü','Ü',$string);
$string=ereg_replace('ä','ä',$string);
$string=ereg_replace('ö','ö',$string);
$string=ereg_replace('ü','ü',$string);
$string=ereg_replace('ß','ß',$string);
$string=ereg_replace('§','§',$string);
return($string);
}
$conn_id=ora_plogon("infoville/infoville@infosol","");
$cur=ora_open($conn_id);
ora_parse($cur,"SELECT schluessel,bezeich FROM kategorie ");
ora_exec($cur);
while(ora_fetch($cur)==1){
$key=ora_getcolumn($cur,0);
$bez=ora_getcolumn($cur,1);
$bez=str2html($bez);
echo("<br> $key $bez \n");
}
ora_close($cur);
ora_logoff($conn_id);
?>
</BODY>
</HTML>
When i run this script under PHP-Apache-modul sometimes i get the german special characters and
sometimes not. In table kategorie there are strings with german special characters in column
bezeich.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net