Read Persian (Unicode chars) text file using php

后端 未结 3 2034
忘掉有多难
忘掉有多难 2021-01-22 02:12

I am reading one Persian text file (using PHP) with the help of below code:

/* Reading the file name and the book (UTF-8) */
if(file_exists($SourceDirectoryFile)         


        
3条回答
  •  半阙折子戏
    2021-01-22 02:20

    You'll need to make sure that the page where you're displaying the text file has correct encoding.

提交回复
热议问题