Can you plese help me with php fwrite. Csv showing wrong characters
something like:
općšpšćšćšp ćpšćpšćp šćpšćpšć
This is php code for input:
I can't find option to fix UTF-8 for this php:
<?php
if (isset($_POST['myname'])){
$name = $_POST['myname'];
$handle = fopen('names.csv', 'a');
fwrite($handle, $name."\n");
fclose($handle); }
?>
Html:
<form method="post" action="demo.php">
Myname: <input type="text" name="myname" />
<input type="submit" name="submit" value="submit data" />
</form>
Somebody help please?