Welcome to The Emission Locus Sign in | Join | Help

Browse by Tags

All Tags » BOM   (RSS)

Update: Encoding source files and documents as UTF-8 in VS2005

The old code was a bit tacky, using a timer to trigger the file encoding dialog. And of course it was buggy: it wouldn't work for multiple documents opening simultaneously. So I've fixed it properly by using the WindowEvents_WindowActivated event. So
Posted by john | 0 Comments
Filed under: , , ,

Attachment(s): FixFileEncoding.zip

Encoding source files and documents as UTF-8 in VS2005

I'm picky about the encoding of my source files, HTML documents, etc. Whereever possible I save as either UTF-8 or UTF-16LE, both with a BOM (byte order mark). This ensures that the document can always be read without any encoding issues. Although it
Posted by john | 1 Comments
Filed under: , , ,

Attachment(s): FixFileEncoding.zip