It depends on your operating system and display mechanism. Windows GUI applications (.Net, MFC, and GDI based) will display full Unicode via UTF-16. Xerces uses wchar_t to hold UTF-16, so the conversion to UTF-16 in Windows' WCHAR_T is a character-by-character copy.
Windows console will only display 8-bit. Linux/Unix I think has full display via X-Windows and toolkits that use, it if you choose an appropriate font. I don't know about Linux/Unix console, but I think that you can convert to wchar_t and use printf with "%ls" format. Maybe someone else on mailing list can fill in Linux/Unix, that is not my expertise. You might also look into the ICU library, which has a very large selection of transcoders. john -----Original Message----- From: K.WIKI [mailto:[email protected]] Sent: Monday, October 19, 2009 8:41 AM To: [email protected] Subject: RE: Special charecteres and transcode Hi John Thanks for your response So If I cannot use Unicode an 8-bit wath I can Used to display all characters ?? thank you again John Lilley wrote: > > If you are transcoding from Unicode an 8-bit code page, not all characters > are representable. > john > > -----Original Message----- > From: K.WIKI [mailto:@gmail.com] > Sent: Monday, October 19, 2009 4:18 AM > To: [email protected] > Subject: Special charecteres and transcode > > > Hi All > > I have a probleme the special charactere > > so I have a methode that get a string , this string can conteaint some > special caractere like > > "ϑ ϒ ϖ – — ‘ ’ ‚ “ ” „ † ‡ • … ‰ ′ ″ ⁄ € ℑ ℘ ℜ ™ ℵ ← ↑ → ↓ ↔ ↵ ⇐ ⇑ ⇒ ⇓ ⇔ ∀ > ∂ ∃ ∅ ∇ ∈ ∉ ∋ ∏ ∑ − ∗ √ ∝ ∞ ∠ ∧ ∨ ∩ ∪ ∫ ∴ ∼ ≅ ≈ ≠ ≡ ≤ ≥ ⊂ ⊃ ⊄ ⊆ ⊇ ⊕ ⊗ ⊥ ⋅ > ⌈ ⌉ ⌊ ⌋ 〈 〉 ◊ ♠ ♣ ♥ ♦" > > so when I use transcose, somme of this characters changed to ???? > > thus is My code > > I put my string in this variable strMessage > > XMLString::transcode("Message",xmlChTempStr,(LENGTH_TEMPORAL_STRING - 1)); > DOMElement * chmessage = m_xmlDoc->createElement(xmlChTempStr); > chText->appendChild(chmessage); > > > XMLString::transcode(strMessage,xmlChTemStr,(LENGTH_TEMPORAL_STRING - 1)); > textNode = m_xmlDoc->createTextNode(xmlChTemStr); > chmessage ->appendChild(textNode); > > > any help plz > > best regard > -- > View this message in context: > http://www.nabble.com/Special-charecteres-and-transcode-tp25955958p25955958.html > Sent from the Xerces - C - Users mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Special-charecteres-and-transcode-tp25955958p25959504.html Sent from the Xerces - C - Users mailing list archive at Nabble.com.
