Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Make the most of your online learning experience.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

916 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