Skip to content

Commit

Permalink
Another fix in ImportStringsFile for encoding related problems with U…
Browse files Browse the repository at this point in the history
…TF-16 strings
  • Loading branch information
tempelmann committed Sep 25, 2011
1 parent f06b0eb commit 8954c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenLingua Classes/EditWindow.rbfrm
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,9 @@ End
#if DebugBuild
// need to convert to UTF-8, at least for debugging, or the darn debugger will crash on me (OSX, RB 2011r1)
txt = txt.ConvertEncoding (Encodings.UTF8)
#else
// oddly - I get errorneous results with UTF16BE strings down there as well, e.g. getting 0-chars occasionally
txt = txt.ConvertEncoding (Encodings.UTF8)
#endif

// Now parse the text.
Expand Down

0 comments on commit 8954c58

Please sign in to comment.