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.
我在从MyGallery(免费 PHP 脚本)的.dat文件中写入 utf8 字符时遇到问题。 文件中的 utf8 字符是这样写的:.dat
.dat
�ва е �амо п�оба</p>
当我尝试.dat使用 utf8 字符文本编辑文件时,我能够在 MyGallery 中看到正确的文本,所以问题在于写入.dat文件(从文件中读取是可以的)。
有什么建议吗?
查看utf8_decode @ PHP 手册和utf8_encode @ PHP 手册,你会在几分钟内找到解决方案