I'm trying to split text in my web. I have this word "" and it became "?" in my web
The first i try to just print "" without any php function process and it can show "" and not became "?"
so i try to use str_split
& print_r
and it became "?" at all
<?php
header('content-type: text/html; charset=utf-8');
//error_reporting(E_ALL ^ ( E_NOTICE | E_WARNING ));
$letter='';
?>
<!DOCTYPE html>
<html>
<head>
<title>memek</title>
</head>
<body>
<form method="POST">
<input type="hidden" name="submit" id="submit" value="let">
<textarea name='input' value="" placeholder="put text here" cols="50" rows="10"></textarea><br>
<button type="submit" value="start">Start</button>
</form>
<?php
function katanya($kata){
return str_split($kata);
}
if (isset($_POST['submit']) == 'let') {
$letter = $_POST['input'];
$letter = katanya($letter);
}
?>
<textarea name="result" placeholder="result goes here"cols="50" rows="10"><?php print_r($letter); ?></textarea>
</body>
</html>
I want it not to became "?" but can show the original splitted text
edit: solved this case with this solution https://gist.github.com/ondrejmirtes/2780075?fbclid=IwAR3DDu-bn8HrowpRcGqEt02TB4iRbWWi4TLpByvR7WvSIX7rygmsbj69WJg