Problems With Notepad++ and UTF-8

Don't get me wrong. Notepad++ is a great piece of software. But there are some little gotchas that'll appear every now and then when using it.

When you're dealing with HTML, PHP, and JavaScript files, especially when you're creating them from scratch, starting with a new file, look out. Double check and make sure that the encoding is UTF-8 (which is the default encoding) without BOM, because if there is a BOM, it'll wreck havoc. Lots of havoc.

I've seen strange problems

I've seen strange problems about encoding and Notepad++. If you have a file with bad encoding and trying to convert it to ANSI or UTF-8 won't solve your problem, one possible solution is to delete the first line of the file (in other editor), save it again and then retype the first line (I guess this procedure removes invalid BOM information). That will do the trick!

When clicking on a picture in

When clicking on a picture in my picture files the file comes up in notepad format