Solved

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

Posted on 2004-08-16
3
728 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

763 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