| View previous topic :: View next topic |
| Author |
Message |
bar Guest
|
Posted: Wed May 16, 2007 2:23 pm Post subject: XML and Unicode |
|
|
Hello all.
i am using TXMLDocument in BCB6,
in some of the nodes i have text like
<menu>Ôäí dkjfkdj </menu>
I am not getting the unicode text, the code i am using
NMenuitem->ChildNodes->Nodes[WideString("menu")]->Text;
How can i extract the text
Thanks for the help
SA |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 9:31 pm Post subject: Re: XML and Unicode |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:464acd6d (AT) newsgroups (DOT) borland.com...
| Quote: | I am not getting the unicode text, the code i am using
NMenuitem->ChildNodes->Nodes[WideString("menu")]->Text;
|
What exactly are you getting instead?
| Quote: | How can i extract the text
|
What is the Encoding of the Document set to? You will probably have
to decode the Text manually.
Gambit |
|
| Back to top |
|
 |
bar Guest
|
Posted: Wed May 16, 2007 9:57 pm Post subject: Re: XML and Unicode |
|
|
Hi remy thanks for reply
i am getting ???? in the place of the unicode characters.
The encoding of the document is
<?xml version="1.0" encoding="Windows-1252" ?>
Thanks
SA |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 11:51 pm Post subject: Re: XML and Unicode |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:464b37e0 (AT) newsgroups (DOT) borland.com...
| Quote: | i am getting ???? in the place of the unicode characters.
|
That will happen if you assign a Unicode string to an Ansi string.
Are you assigning the result of the Text property to an AnsiString
variable? The Text property returns a WideString instead.
Gambit |
|
| Back to top |
|
 |
bar Guest
|
Posted: Thu May 17, 2007 8:11 am Post subject: Re: XML and Unicode |
|
|
yes.
Even if i did
WideString a = NMenuitem->ChildNodes->Nodes[WideString("title")]->Text;
The result is same.How to resolve this
Thanks
SA |
|
| Back to top |
|
 |
bar Guest
|
Posted: Sun May 20, 2007 3:02 pm Post subject: Re: XML and Unicode |
|
|
can anybody help in decoding the text from xml file
Thanks
SA
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:464c009a (AT) newsgroups (DOT) borland.com...
| Quote: | yes.
Even if i did
WideString a = NMenuitem->ChildNodes->Nodes[WideString("title")]->Text;
The result is same.How to resolve this
Thanks
SA
|
|
|
| Back to top |
|
 |
|