Good morning, after searching extensively for solutions to my problem, trying out various solutions that were suggested in other questions, like this one for example:
I'm looking for information from a php POST of a query to the Oracle database, but the output of this information, may contain special characters: in the database is saved as "John" in the post exits "Jo? o."
I would like the tip of the friends for a configuration (ideal that is global php.ini) where you could configure the output php charset. Some settings I've already made:
PHP.ini
default_charset = "utf-8"
internal_encoding = 'utf-8'
output_encoding = 'utf-8'
Index.php
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="utf-8" />
</head>
<body>
<?php
var_dump($result1);
?>
... ["NAME"] = > string (4) "Jo? o" ...
Being in the database is saved correctly:
Connectiontothebank:
$host="10.0.0.2";
$service="//10.0.0.2:1521/orcl";
$conn= new \PDO("oci:host=$host;dbname=$service","USER","senha");
If I give the command below to check the encoding of the string, I get 'ASCII'
echo mb_detect_encoding($result1['NOME']);
I've also tried using the utf8_encode () function; but nothing changes .. :(
If I write other texts in index.php that contain special characters they are displayed normally, so I do not believe there is some config in the editor-level file or meta tag.
Thank you very much in advance.