This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > March 2005 > XML Encoding
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| venky72 2005-03-16, 7:03 pm |
| We have file in which the UTF is set to 16. When we are using a parser
supplied by Oracle for uploading the file to oracle 9i database, the
parsing is faling with reason " failed to convert".
Howevere when we over write UTF-16 with UTF-8, the pasring and uploading
is going smoothly.
We are suspecting that the file suppied is not actually a valid XML file
with UTF-16 enconding.
So is there a way for me to confirm my suspicion that the supplied file is
valid UTF-16 encoded XML file or not?
| |
|
| One way is BOM. utf-16 encoded file starts with 0xFF and 0xFE for its first
two bytes.
set strm=createobject("adodb.stream")
with strm
..open
..type=1
..loadFromFile "c:/x.xml"
b=.read
..close
end with
b1=hex(ascb(midb(b,1,1)))
b2=hex(ascb(midb(b,2,1)))
msgbox b2
"venky72" <datla72@reddy.com> wrote in message
news:6ef80868e84dbda5ce89d12de0c52eb4@localhost.talkaboutsoftware.com...
> We have file in which the UTF is set to 16. When we are using a parser
> supplied by Oracle for uploading the file to oracle 9i database, the
> parsing is faling with reason " failed to convert".
>
> Howevere when we over write UTF-16 with UTF-8, the pasring and uploading
> is going smoothly.
>
> We are suspecting that the file suppied is not actually a valid XML file
> with UTF-16 enconding.
>
> So is there a way for me to confirm my suspicion that the supplied file is
> valid UTF-16 encoded XML file or not?
>
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|