Re: [xml-dev] special characters
by Rick Jelliffe other posts by this author
Feb 25 2003 6:40PM messages near this date
[xml-dev] special characters
|
Re: [xml-dev] special characters
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@[...].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?
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
Thread:
Rick Jelliffe
Chiusano Joseph
|