Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーからデータを投稿し、JSON データに変換してデータベースに保存します。エスケープ文字の問題を回避するために、使用しました
$jsonData = json_encode($array_json_data,JSON_HEX_APOS|JSON_HEX_QUOT);
エスケープされたcharをUXXXX charに変換しました。
これらのデータのデコード中に問題が発生しました。
たとえば、U0027 からの引用を印刷するにはどうすればよいですか。
html_entity_decode を使用して、引用符を実際の文字列表現に変換します