Questions for byte-order-mark


How can I output a UTF-8 CSV in PHP that Excel will read properly?

I've got this very simple thing that just outputs some stuff in CSV format, but it's got to be UTF-8. I open this file in TextEdit or TextMate or Dreamweaver and it displays UTF-8 characters proper...

How to check for UTF-8 BOM in files in Groovy?

I don't want to load the whole file into memory I don't want to make any assumptions about the underlying OS. I'm left with this: echo it, "Checking file.. ${file.absolutePath}" def fis = new

Remove hidden characters from XML

How can I remove these hidden characters that are at the beginning of the file (before Allitems)? When I open the file regularly, they can't be seen of course. Used an online tool that detected the...