You can easily remove them using vim, here are the steps:
1) In your terminal, open the file using vim:
vim file_name
2) Remove all BOM characters:
:set nobomb
3) Save the file:
:wq
More Related Contents:
- UTF-8, UTF-16, and UTF-32
- Read Unicode UTF-8 file into wstring
- How many characters can be mapped with Unicode?
- Difference between UTF-8 and UTF-16?
- JVM property -Dfile.encoding=UTF8 or UTF-8?
- What’s the difference between utf8_general_ci and utf8_unicode_ci?
- How to remove \xa0 from string in Python?
- What is the difference between UTF-8 and Unicode?
- What is the proper way to URL encode Unicode characters?
- Fixing broken UTF-8 encoding
- In MATLAB, can I have a script and a function definition in the same file?
- How to convert a file to utf-8 in Python?
- Convert escaped Unicode character back to actual character
- Why doesn’t Python recognize my utf-8 encoded source file?
- WebClient.DownloadString results in mangled characters due to encoding issues, but the browser is OK
- can I get the unicode value of a character or vise versa with php?
- for IE gives full path, need file name only
- How to use unicode in Android resource?
- Saving UTF-8 texts with json.dumps as UTF-8, not as a \u escape sequence
- Unicode in PDF
- How can I remove the BOM from a UTF-8 file? [duplicate]
- Log4Net config in external file does not work
- Python – dealing with mixed-encoding files
- ASCII vs Unicode + UTF-8
- UTF-8 & Unicode, what’s with 0xC0 and 0x80?
- How to create a custom magic file database
- UTF-8 HTML and CSS files with BOM (and how to remove the BOM with Python)
- Inheriting and overriding functions of a std::string?
- Trim unicode whitespace in PHP
- Deny access to specific file types in specific directory