Forum > Resources and Tools
[TOOL] Spell Editor GUI
<< < (6/6)
stoneharry:
--- Quote from: "schlumpf" --- --- Code: ---Encoding.UTF8.GetString (UTF8Encoding.Convert ( System.Text.Encoding.ASCII , System.Text.Encoding.UTF8 , System.Text.Encoding.Default.GetBytes (offset) ) ) --- End code --- The problem is the "convert". System.Text.Encoding.Default is some ANSI encoding of your system, thus a not really well defined value. Then, you're converting from ANSI (?), hard-reinterpreting it as ASCII, to UTF8. That's just non-sense. All it may do is filtering non-ASCII-characters, which is why you're seeing question marks.
You should do
--- Code: ---System.Text.Encoding.UTF8.GetString (System.Text.Encoding.UTF8.GetBytes (offset)) --- End code --- and everything should be fine. --- End quote ---
Thank you, the changes suggested appear to work.
Committed to GitHub, updated the dropbox link. The new version should work. :)
Navigation
[0] Message Index
[*] Previous page
|