Solved

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

Posted on 2004-08-16
3
732 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
in SAS how to create a record for each combination of the two duplicates? 16 129
ejb entity bean example 2 59
Adding a countdown to HTA 12 116
$_GET call between URL 3 70
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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?
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…

710 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