Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

parser will not parse Unicode(LPWSTR) buffer

badfish2badfish2 Member Posts: 1
(MSXML parser on windows 2000 using Visual C++ 6)

I have an XML document that I have tried parsing with every encoding
available to Notepad, and have come to the conclusion that I can only parse ANSI characters when I pass the document CONTENT into parsers. This doesn't apply when I pass in a filename, everything works as it should, but in this circumstance I can't do that. The only reason I can determine that it works only under ANSI is because when the file is encoded via Unicode there is a character at the beginning of the file that is there to denote Unicode encoding. that one character renders me inable to parse my CComBSTR or seemingly anything else I try to stick this string into the parser when I have this document's contents loaded into a CComBSTR.

Can someone please tell me the appropriate steps to load file contents from a Unicode-encoded XML document into a buffer and have the buffer's contents parsed?

Thanks!


[hr]
To me programming is more than an important practical art. It is also a gigantic undertaking in the foundations of knowledge.

[italic]-Grace Hopper,inventor of the compiler[/italic]

Comments

  • Justin BibJustin Bib USAMember Posts: 0

    ___ ( http://forcoder.org ) free ebooks and video tutorials about { Go, Python, Swift, R, Java, C#, Scratch, PHP, Assembly, Visual Basic .NET, PL/SQL, Visual Basic, JavaScript, Ruby, Perl, C++, C, Objective-C, Delphi, MATLAB Erlang, ABAP, ML, Rust, Alice, Clojure, Crystal, LabVIEW, Julia, Dart, D, Transact-SQL, Lua, Prolog, Hack, Fortran, Logo, Ada, FoxPro, Bash, F#, Scala, Apex, SAS, Awk, Lisp, COBOL, Scheme, VBScript, Kotlin } _____

Sign In or Register to comment.