How do I remove  from the beginning of a file?

前端 未结 23 1362
攒了一身酷
攒了一身酷 2020-11-22 06:21

I have a CSS file that looks fine when I open it using gedit, but when it\'s read by PHP (to merge all the CSS files into one), this CSS has the following characters prepend

23条回答
  •  日久生厌
    2020-11-22 06:43

    1. Copy the text of your filename.css file.
    2. Close your css file.
    3. Rename it filename2.css to avoid a filename clash.
    4. In MS Notepad or Wordpad, create a new file.
    5. Paste the text into it.
    6. Save it as filename.css, selecting UTF-8 from the encoding options.
    7. Upload filename.css.

提交回复
热议问题