Right, I’ll change it to this so it doesn’t get broken again:
if (str.Find('\xC2') != wxNOT_FOUND)
str.Remove(str.Find('\xC2'), 1);
Quote from: mmalmi@cc.hut.fi on February 05, 2010, 7:56:16 AM UTC
I didn’t change it knowingly, must have been some encoding problem.
Quote from: Satoshi Nakamoto on February 04, 2010, 7:33:26 PM UTCWhat was the reason for this change?
#if !wxUSE_UNICODE … if (str.Find(‘Â’) != wxNOT_FOUND) str.Remove(str.Find(‘Â’), 1); to: if (str.Find(‘�’) != wxNOT_FOUND) str.Remove(str.Find(‘�’), 1);
wxFormBuilder turns the (c) symbol into UTF-8 automatically. On wxWidgets-2.8.9 ansi, it shows as a copyright symbol with an extra trash character, which this hack fixes up for the non-unicode (ansi) case.