Sorry it took me a few days.
I'm still having problems with Spanish characters but I got it working with Thai. I edited dbtech/gallery/clientscript/gallery.js
Make sure you hard refresh the page (Shift + F5) so you make sure the js file gets refreshed then try to comment again and let me know. I'll keep working on the other character problems.