Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Norwegian language in XML

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

I'm retrieving a value from a site and it gets passed back (very kindly) as an XML document. The ony problem is that, because it is a Norwegian site, most of the documents contain Norwegian characters - which my local XML document is rejecting as invalid characters.

Is there any way to get around this?

Thanks as always

Craftor

:cool:
 
Hi,

i've created documents in Gaeilc, Norwegian should not be any problem. Just make sure to use character code for special characters.

I have a list if it helps:
Common Character Entity References
ASCII Numeric Character Reference 0-800

(not plugging my page, its just the handiest link to pose for reference)


É
:: ::
 
Hi cian

Unfortunately the problem is not creating the document - its that the document being passed is containing what my parser sees as 'invalid' characters.

From what I could gather from the Microsoft reference, there should be some entry in the top of my document refering to either an ISO encoding or a text/html encoding?

It didn't make too much sense to me and didn't work when I tried it :-(

Thanks
Craftor

:cool:
 
I've tried specifying ISO-8859-1 and 2 but to no avail *cross*

It's almost as if it's ignoring all my specifications and just returning it as plain text *shrug*
 
If you leave the encoding off the document, it's supposed to default to UTF-8. If that isn't happening, try putting the encoding on:
Code:
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<rootnode>
</rootnode>

Chip H.
 
Hi all

Thanks for all the suggestions - found out what the problem was ...

In C# we were using ServerXMLHTTP which does not allow for different encoding types *grrrrr*

O well back to the drawing board and thanks again guys for taking the time.

Have a good monday morning!

:cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top