Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
TinyXml with Unicode thread
thomas:
--- Quote from: 280Z28 on December 20, 2005, 08:53:28 am ---Hang on, I'll get you a patch right now that fixes the "Code::Blocks v1.0" shows as "C v1" fix. I didn't and won't post it on SF because I was already told it won't get committed.
--- End quote ---
Sam, the patch was turned down because it does not fix the bug. It is a patch that reverts Yiannis' changes in r1513. You are welcome to fix the bug, but like I told you, the way to go is to modify the about box so it works with the modifications, not to revert appglobals.h.
280Z28:
--- Quote from: thomas on December 20, 2005, 10:55:24 am ---
--- Quote from: 280Z28 on December 20, 2005, 08:53:28 am ---Hang on, I'll get you a patch right now that fixes the "Code::Blocks v1.0" shows as "C v1" fix. I didn't and won't post it on SF because I was already told it won't get committed.
--- End quote ---
Sam, the patch was turned down because it does not fix the bug. It is a patch that reverts Yiannis' changes in r1513. You are welcome to fix the bug, but like I told you, the way to go is to modify the about box so it works with the modifications, not to revert appglobals.h.
--- End quote ---
I may toy with it later. For now, there are some major bugs that don't have solutions at all. As my code stands, that section falls under "don't fix what ain't broke." The former appglobals.h works in ANSI and unicode so I don't see why change it. :? If someone changes it later and it still works and you're happy with it, then I guess that's fine too.
Michael:
Hello,
Regarding TinyXML & wxWidgets, I have found this article How To Use TinyXML With WxWidgets in the wxWiki that could be interesting.
Alternatively, if TinyXML seems to have problems with UNICODE, why not try the libxml2 library? It is mentioned on the wxWiki Using XML With WxWidgets and a wrapper wxxml2 exisits. Some info here about the libxml2 Encodings support.
Best wishes,
Michael
thomas:
--- Quote from: Michael on December 20, 2005, 06:43:20 pm ---How To Use TinyXML With WxWidgets
--- End quote ---
That's exactly what we are doing. :)
--- Quote ---why not try the libxml2 library? It is mentioned on the wxWiki
--- End quote ---
If we were to use another xml library, we should be using the one built into wx. But that would mean we would have to rewrite an awful lot of code. Plus, the charm of tinyXML is that it is easy to use, small, and fast.
Michael:
--- Quote from: thomas on December 20, 2005, 06:50:58 pm ---
--- Quote from: Michael on December 20, 2005, 06:43:20 pm ---How To Use TinyXML With WxWidgets
--- End quote ---
That's exactly what we are doing. :)
--- End quote ---
Ok, I see. Sorry :oops:.
--- Quote from: thomas on December 20, 2005, 06:50:58 pm ---why not try the libxml2 library? It is mentioned on the wxWiki
--- End quote ---
--- Quote ---If we were to use another xml library, we should be using the one built into wx. But that would mean we would have to rewrite an awful lot of code. Plus, the charm of tinyXML is that it is easy to use, small, and fast.
--- End quote ---
Yes, I understand. Changing of xml library is worth if the code to be modified/rewritten is not too much and if really it is the only library that could solve the problem(s).
I have looked at TinyXML and it is an interesting piece of code. The only problem, I see is that it uses the Document Object Model (DOM). For small XML documents DOM is suitable, but for larger ones it could lead to high memory consumption (SAX would be a better alternative in this context).
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version