|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-29 11:32 UTC] thies at cvs dot php dot net
[1999-05-29 11:40 UTC] thies at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 00:00:01 2025 UTC |
<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.