Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » asxml...or like I would like to keep encoding...
asxml...or like I would like to keep encoding... [message #30155] Sun, 12 December 2010 10:44 Go to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
Hi,

I use XMLNode to build an XML tree and AsXml to convert it into text.

The text nodes can be encoded in different 8bit charaterset sets .

How can I achieve so that that the character sets are kept?

At the moment, I tried to set it ASCII but it caused an exception when eastern character set..

All I want is the output xml should keep all characters as they are (I want no conversion), I do not want utf8.
Is it possible to do it in this framework?

Thank you,.
Re: asxml...or like I would like to keep encoding... [message #30162 is a reply to message #30155] Sun, 12 December 2010 16:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
aftershock wrote on Sun, 12 December 2010 04:44


All I want is the output xml should keep all characters as they are (I want no conversion), I do not want utf8.
Is it possible to do it in this framework?


Ha, until now I did not knew it is possible to use anything else than utf-8/utf-16... Smile

But

"Encodings other than UTF-8 and UTF-16 will not necessarily be recognized by every XML parser."

Should we bother then?

Mirek


Re: asxml...or like I would like to keep encoding... [message #30189 is a reply to message #30162] Tue, 14 December 2010 11:25 Go to previous messageGo to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
So many parser support it. Xalan,Saxon...

Well, I ask for it because I need it.
I guess other could benefit from it.
Uft8 is getting widespread. Yet I still use non-utf myself.
I have source files which are encoded in different variants of ascii. The problem I have to specify exact encoding for the xml parser, otherwise it causes an exception. I tried to use useascii encoding for ascii like encoding but it would not be enough.
It would simplify its usage.


[Updated on: Tue, 14 December 2010 12:03]

Report message to a moderator

Re: asxml...or like I would like to keep encoding... [message #30205 is a reply to message #30189] Wed, 15 December 2010 16:17 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I guess we will have to go this route. After all, we have Charset.h...

Mirek
Previous Topic: FIX: Value has Value, Value Type VALUE_V
Next Topic: Arrys vs Vectors
Goto Forum:
  


Current Time: Sun Apr 28 09:56:22 CEST 2024

Total time taken to generate the page: 0.03794 seconds