Search found 10 matches

by Moonslate
Wed Aug 12, 2020 12:54 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 675

Re: Escape non printable chars in XML

Hello, doublemax. Thank you for your answer. You didn't mention it, but i assume you use wxXmlDocument? ... Hello, how do I escape non-printable chars when saving a wxXmlDocument ? I see. I was deceived with the wxXmlDocument::SetVersion. If your answer had been the first, this post would be very sm...
by Moonslate
Tue Aug 11, 2020 8:57 pm
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 675

Re: Escape non printable chars in XML

you can see that the UTF-8 ENQ is 0x05 (the same as ASCII) and the Unicode is 0x0500. ..this time I think it's perfectly clear -- you are confusing "Unicode" with "utf-16" / "UCS-2". "Unicode" is not an encoding, while utf-8, utf-16, ucs-2 are all encodings intended to represent Unicode. Again, 0x0...
by Moonslate
Tue Aug 11, 2020 1:31 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 675

Re: Escape non printable chars in XML

The UTF-8 representation of 0x0500 (unicode) is the same as UTF-8 (0x05) Uhm, no, it is not. Unicode U+0500 can be represented in utf-8 as 0xD4 0x80 (and FWIW as 0x0500 in utf-16). but with only one char. There is no such thing. You are probably confusing a misinterpretation of utf-16 0x0500 value ...
by Moonslate
Tue Aug 11, 2020 12:14 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 675

Re: Escape non printable chars in XML

Did you mean "non-printable" as in "not on the keyboard"? Because it looks like 0x0500 does have a glyph. And you probably need to escape it inside the wxString that you use to write the xml, in which case you'd be better off by finding its utf8 representation and using that, which in your case sho...
by Moonslate
Thu Aug 06, 2020 9:37 pm
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 675

Escape non printable chars in XML

Hello, how do I escape non-printable chars when saving a wxXmlDocument? i.e saving a string with a text attribute with the string: "Choose another one?[0x0500]" [0x0500] is the non printable char. This saves without error, but when loading again, I get an error of not well formed character. I also t...
by Moonslate
Mon Apr 27, 2020 10:42 pm
Forum: General Forum Issues
Topic: How to change my nickname?
Replies: 1
Views: 1842

How to change my nickname?

Well, I just want to change my nickname, but there are no such option in the account settings...
by Moonslate
Sun Dec 01, 2019 9:54 pm
Forum: C++ Development
Topic: Spell checking wxStyledTextCtrl
Replies: 2
Views: 381

Spell checking wxStyledTextCtrl

I'm wanting to use a spell checker for wxStyledTextCtrl. It's needs to wait the user to end typing, end then check the text typed. It looks like DSpellCheck for Notepad++. This is how I'm trying: const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; in the char add...
by Moonslate
Tue Nov 26, 2019 8:21 pm
Forum: C++ Development
Topic: Bug with wxStyledTextCtrl::GetCurrentPois in wxEVT_STC_UPDATEUI
Replies: 3
Views: 1222

Re: Bug with wxStyledTextCtrl::GetCurrentPois in wxEVT_STC_UPDATEUI

Thanks, but this is a user forum. Please use http://trac.wxwidgets.org to report bugs. Sorry, if I face any other problem, I`ll use that link. This sounds like this issue . It was recently fixed. If you can, try using the latest version from git. If that's not an option, try using CallAfter as disc...
by Moonslate
Sat Nov 23, 2019 6:32 pm
Forum: C++ Development
Topic: Bug with wxStyledTextCtrl::GetCurrentPois in wxEVT_STC_UPDATEUI
Replies: 3
Views: 1222

Bug with wxStyledTextCtrl::GetCurrentPois in wxEVT_STC_UPDATEUI

Steps to reproduce the error: m_maxLineLenght is, for this exemple, 28 #define LINEERROR_MASK 1 The marker was created with a 16x16 wxBitmap 1 - Create an inline function with this code and call this function in the OnStyleNeeded: int line = stc->GetCurrentLine(); int lenght = stc->GetLineLength(lin...
by Moonslate
Sat Aug 24, 2019 10:49 am
Forum: Compiler / Linking / IDE Related
Topic: CreateProcess, The system cannot find the file specified error
Replies: 2
Views: 1368

CreateProcess, The system cannot find the file specified error

I have the same error reported here : if not exist gcc_mswu mkdir gcc_mswu process_begin: CreateProcess(NULL, -c "if not exist gcc_mswu mkdir gcc_mswu", ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: [gcc_mswu] Error 2 (ignored) if not exist ..\..\lib\gcc_lib mkdir...