OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] special characters

[ Lists Home | Date Index | Thread Index ]

In order to send special characters there are three different approaches.

1) Save the file using some encoding (character set) that has all the characters: 
for example UTF-8. 

2) Save the file as ASCII, but with all the special characters replaced by 
numeric character references. For example,   is ç 

3) Sace the file using entity references. You will need to use a DTD which
declares those entities. For example, '' is ã

Of these, the easiest way is probably 1). But it is also the way that confuses
people the most.  You say your program does not save the characters:
perhaps you could send some more details on what is happening: are
any strange bytes being written to the file. What programming language
are you using? What operating system are you using.

Cheers
Rick Jelliffe



----- Original Message ----- 
From: <monica.coelho@petrobras.com.br>

My program builds and sends a XML file that insert material categories in
my catalog. When I have a category name with special characters such '',
'', '' etc, it isn't saved correctly in the catalog. Is there any way to
send this names and preserve the special characters?






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS