search

Home  >  Q&A  >  body text

Copy probably needs to tell you the location of the file.

ScreenShot_20170920081952.png

Aの汉Aの汉2682 days ago1305

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-09-20 09:31:36

    Although php supports Chinese directories, it is best not to use it. Each system supports different encoding formats, such as: Linux series, generally UTF-8 encoding. If it's Windows, it should be ANSI.

    If your PHP code is UTF-8 encoded, under Windows, you need to convert the encoding of files and directory strings containing Chinese.

    For example:

    $dir = 'D:/My Documents'; This directory exists, but you get a false value when you use is_dir() to judge.
    $dir = iconv( 'UTF-8', 'GB18030', $dir );

    Just convert the encoding.

    reply
    1
  • Cancelreply