Didn’t find (gave myself) time to record that video yesterday, but here’s how it looks. Can’t show ingame pics right now, so just take my word for it that it worked on the title screen. I haven’t tried with the other files for items and such, but I think @law has done that testing already. And basically, there’s still where the problem lies as I understand it.
But we also have the old problem where the game doesn’t understand UTF8, perhaps that’s the root cause of all this evil…
My old and new code, based on the example from @RepeatPan. First the class:
(Can’t get this post to behave with the spacing in the code block!)
[code]
//Returns a JSON formatted row with both tag name and translated value ready for export
public string PrintJsonRowTrans()
{
return “”" + tagName + “”" + " : " + “”" + tagTrans + “”,";
}
//Returns a JSON formatted row with both tag name and translated value ready for export but in HTML
public string PrintJsonRowTransHTML()
{
return “”" + tagName + “”" + " : " + “”" + myHTMLconverter(tagTrans) + “”,";
}
private string myHTMLconverter(string inputStr)
{
StringBuilder returnStr = new StringBuilder();
foreach (char c in inputStr)
{
int value = Convert.ToInt32(c);
if (c > 127)
returnStr.AppendFormat("&#{0:0000};", value);
else
returnStr.Append(c);
}
return returnStr.ToString();
}[/code]
And this is obviously how I call it:
if (isHtml) //Print row with HTML formatting
wr.WriteLine(" " + allData[i].PrintJsonRowTransHTML());
else //Print row according to JSON format
wr.WriteLine(" " + allData[i].PrintJsonRowTrans());
So moving on to how it looks in the program:
And the utf8 w/o BOM file:
And when exporting in same encoding, but with HTML:
As said, the title screen looks good with this. I don’t know what to do next, I think @sdee & co. have the ball now?