文字コードを変換する際に代替文字として文字エンティティを出力する処理を追加

This commit is contained in:
konkon-fox 2023-10-18 23:23:39 +09:00
parent 7bc2364a1f
commit 922b573b4a
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['edit'] == "yes") {
mb_substitute_character('entity');
$newHeadText = mb_convert_encoding($_POST['head'], 'SJIS-win', 'UTF-8');
file_put_contents($PATH."head.txt", $newHeadText);
$newKokutiText = $_POST['head2'];