Solved

XML and characters Æ, Ø Å won't display in asp.net

Posted on 2004-08-16
3
691 Views
Last Modified: 2008-02-26
Hi,

The xml document is used to create a menu on my site. Everything works but when i use the characters Æ,Ø or Å (danish language) i recieve an error ...object reference not set..
I would like the word "Østed" to appear in the menu. for that I tried to use "amp" like " Label="Øamp;sted"
with
<?xml version="1.0" encoding="iso-8859-1" ?> or <?xml version="1.0" encoding="utf-8" ?>
but that didn't help.

I hope you can help me

Regards
A new beginner in XML who can make a menu without special charachters :-)
   
0
Comment
Question by:bemiu
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
thepam earned 500 total points
ID: 11807788
Hello, Bemiu---

Not only must you declare the encoding in the XML file, you must also save it in that encoding.  If you have Windows XP, use Notepad to edit your XML file for the proper Danish, and with the UTF-8 encoding declaration.  Then use File|Save As, and specify "Encoding" to be UTF-8.  Then try running your application again.

---Pam
0
 

Author Comment

by:bemiu
ID: 11808563
Hey Pam

Thanks for the work arround !  Both files are the same so i could not understand why i recieved that error meassage. After i compiled your work arround in my application it works fine..and after i compiled my xml file it also works fine !?!? Maybe it should have a kick somewhere in the application.
0
 
LVL 1

Expert Comment

by:thepam
ID: 11808593
Well, glad you got it working.  Thanks for the exchange.
---Pam
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
A short article about a problem I had getting the GPS LocationListener working.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now