Forum > Resources and Tools

[TOOL] Spell Editor GUI

<< < (5/6) > >>

hyakkimaru:
Same problem, my characters are changed into "???"

stoneharry:
Well then, I guess it's term to hail the glorious English master-language.

Jokes aside, I don't know how to fix this. I understand it should be UTF8 but I do not know how to convert it to this format.

According to google my strings should be using UTF-16 (UNICODE).

When I convert from UNICODE to UTF8 it outputs:

--- Code: ---畔⁥湩瑳湡慴썮涩湥⁴慬挠扩敬‮㼿獥썰犨⁥畱⁥潶獵瘠畯⁳敳瑮穥戠敩慤獮瘠瑯敲瀠慥⁵慭湩整慮瑮⸮.

--- End code ---

This doesn't seem right either.

So I am giving up for now until someone can give me more information on where I could be going wrong. :)

hyakkimaru:
I'm not sure but I think you can try with UTF8 or latin1 :)

noc:
and to Win-1252?

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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version