Click here to Skip to main content
16,005,241 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questioncan MARQUEE tag used in HTML be used inWML/XML Pin
ananthavel27-Aug-04 8:13
sussananthavel27-Aug-04 8:13 
AnswerRe: can MARQUEE tag used in HTML be used inWML/XML Pin
Aaron Eldreth3-Sep-04 10:42
Aaron Eldreth3-Sep-04 10:42 
Generalreading an XML file using DOM parser Pin
sangi200726-Aug-04 22:30
sangi200726-Aug-04 22:30 
GeneralProblem in XML - Please help me !!! Pin
Meysam.Khayatan26-Aug-04 21:02
Meysam.Khayatan26-Aug-04 21:02 
GeneralRe: Problem in XML - Please help me !!! Pin
Ryan Roberts27-Aug-04 1:40
Ryan Roberts27-Aug-04 1:40 
GeneralRe: Problem in XML - Please help me !!! Pin
DavidNohejl7-Oct-04 10:14
DavidNohejl7-Oct-04 10:14 
GeneralUnable to read japanese character using LIBXML Pin
25-Aug-04 22:46
suss25-Aug-04 22:46 
GeneralRe: Unable to read japanese character using LIBXML Pin
Stuart Dootson26-Aug-04 9:43
professionalStuart Dootson26-Aug-04 9:43 

  • Are you using a Unicode build? If not, CString will interpret xmlStr as ASCII characters, resulting in what you've got there.
  • Even if you've got a Unicode build...you're not telling anything that xmlStr is UTF-8...


You can verify that libxml is reading the characters correctly by using xmllint (it converts the Japanese characters to numeric entities) and looking up the character codes in charmap.



In order to convert the UTF-8 that libxml gives you to (say) UTF-16, you can use code like this:


<br />
const int WIDE_COUNT = 1024;<br />
wchar_t wide[WIDE_COUNT] = {0};<br />
int inLen = lstrlenA(LPCSTR(xmlStr));<br />
int outLen = WIDE_COUNT;<br />
xmlCharEncodingHandlerPtr handler = xmlGetCharEncodingHandler(XML_CHAR_ENCODING_UTF16LE);<br />
         int nOut = handler->output((xmlChar*)wide, &outLen, xmlStr, &inLen);<br />


This puts the same UTF-16 values in the string wide that xmllint displays as numerical entities.



As to displaying the characters in a message box - I'm afraid I don't know - it'll be character sets again, or fonts, though!!!



HTH

Stuart Dootson

'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
QuestionArticle help?!? Pin
yourxlife25-Aug-04 2:07
yourxlife25-Aug-04 2:07 
GeneralVerification of Login Page using XML Pin
DotNet24-Aug-04 20:19
DotNet24-Aug-04 20:19 
General.NET newbie has question RE: XmlTextWriter Pin
Member 127129724-Aug-04 1:22
Member 127129724-Aug-04 1:22 
GeneralRe: .NET newbie has question RE: XmlTextWriter Pin
Member 127129726-Aug-04 22:34
Member 127129726-Aug-04 22:34 
GeneralRe: .NET newbie has question RE: XmlTextWriter Pin
DavidNohejl7-Oct-04 10:59
DavidNohejl7-Oct-04 10:59 
GeneralRe: .NET newbie has question RE: XmlTextWriter Pin
Anonymous7-Oct-04 22:51
Anonymous7-Oct-04 22:51 
GeneralRe: .NET newbie has question RE: XmlTextWriter Pin
Anonymous7-Oct-04 22:51
Anonymous7-Oct-04 22:51 
GeneralDatagrid cannot displayed. Pin
DotNet23-Aug-04 3:24
DotNet23-Aug-04 3:24 
GeneralXML navigation help needed Pin
liyang yu22-Aug-04 9:06
liyang yu22-Aug-04 9:06 
GeneralRe: XML navigation help needed Pin
Pradeep Shamarao6-Sep-04 21:53
Pradeep Shamarao6-Sep-04 21:53 
GeneralXml Parsing &amp; Validating Pin
SR7717-Aug-04 10:52
SR7717-Aug-04 10:52 
GeneralRe: Xml Parsing &amp; Validating Pin
David Salter23-Aug-04 4:07
David Salter23-Aug-04 4:07 
GeneralNo correct xhtml from XML and XSL Pin
Gumbah13-Aug-04 0:06
Gumbah13-Aug-04 0:06 
GeneralRe: No correct xhtml from XML and XSL Pin
ChrisAdams15-Aug-04 19:37
ChrisAdams15-Aug-04 19:37 
GeneralRe: No correct xhtml from XML and XSL Pin
Gumbah15-Aug-04 21:01
Gumbah15-Aug-04 21:01 
QuestionPulling Values From An XML File - Recommendations? Pin
Member 66660712-Aug-04 6:11
Member 66660712-Aug-04 6:11 
GeneralEvaluating XPath expressions on Windows CE Pin
Kot_Begemot6-Aug-04 5:52
Kot_Begemot6-Aug-04 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.