ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved