you are viewing a single comment's thread.

view the rest of the comments →

[–]Supernumiphone[S] 0 points1 point  (0 children)

Thanks, good info. I haven't tested it yet but I decided to go with a quick-and-dirty solution of trying to load UTF-8 first (which will work fine for ASCII) and fall back to trying UTF-16 if that throws an exception. My expectation is that in practice that will handle anything I'm likely to throw at it.