I\'ve thrown myself into the deep end of the pool, so forgive me if i\'m struggling a bit:
For background:
JavaScript strings - UTF-16 vs UCS-2?
https:/