Re: instead of actual value get strange charachers on dispaying the XML tag via ASPX web page

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 06/15/04


Date: Tue, 15 Jun 2004 15:50:54 +0100


 <<sam>> wrote:
> Hi Jon,
> Thanks for your replay, ? in tag <![CDATA[ ? 845]]> is euro currency sign, i
> dont no why it is convert into " ? " when you see it my email.

Well, it entirely depends on what encoding your newsreader is using. It
hasn't *specified* an encoding, so it's pretty unlikely that things
will get through properly.

> encoding is
> <!--sample XML fragment-->
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> are the root elements of my XML file
>
> Waiting for ur reply

Do you not have a

<?xml ... ?>

declaration *before* your root element? If so, you should have one for
good measure, and it should declare what the encoding of the file is.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: How to encode a UTF8 file in VBA?
    ... and open the XML file in Internet Explorer. ... Explorer will complain if the encoding of the XML file doesn't match the ... Dim objStream As Stream ...
    (microsoft.public.access.modulesdaovba)
  • Re: Character Set Problem?
    ... was no problem until I created a test file with accented characters, ... so the actual encoding and the declaration did not match. ... I have an Access 2002 database that imports an XML file. ...
    (microsoft.public.access.modulesdaovba)
  • XML::DOM Encoding UTF-8 and ISO-8859-1
    ... the XML file: ... Through a CGI script, I load up the file, grab the encoding and put in ... the CGI header: ... If I change the CGI header encoding to UTF-8 like such: ...
    (comp.lang.perl.misc)
  • Re: Assigning another filehandle to STDOUT, using binmode.
    ... input files (but I'm not doing it directly with my own code --- I'm ... The XML parser gets the encoding from the XML file. ... completely independent of the locale. ...
    (comp.lang.perl.misc)
  • Re: XML::Simple and utf8 woes
    ... : I've been following this thread because I have been struggling with: XML::Simple writing/sourcing an XML file in cp932 encoding. ... The: NumericEscape is what resolved the writing and setting the encoding in: the xml declaration of the cp932 encoded file to x-sjis-cp932 so ...
    (comp.lang.perl.misc)