Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-08-16
3
Medium Priority
?
752 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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 …
Introduction to Processes

719 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