Flightphase/ofxQTKitVideoGrabber — pull request #4 by atduskgreg (2012-07-21 03:04:25+00:00)
Title: Fix bug due to ASCII encoding in device names

I encountered a bug due to the device name of my camera (the Microsoft LifeCam HD-3000) including a high-byte character (a registered trademark symbol). This caused a crash in listVideoDevices() in the c++ API due to using ASCII to encode the string. I switched that instance to use the UTF8String encoding method (which seems to be preferred anyway from online discussion) and the crash stopped. This patch replaces all instances of the old ASCII-based encoding method with the new UTF8String encoding instead.

The result with the trademark symbol is an "@" when displayed in OF. Maybe we need a strategy for high-byte/UTF8-encoded strings in OF? Is there already one?