Hi Sue,It is not necessary to convert all chars into html reference, except for a few special chars not usable in xml.
All you need is to define and save the xml file in utf-8.
Appended an example file with some special chars in its original form. Open it in a browser.
(don't know can this mailing list retain the appended file) Best, Allen Lam. HKU Scholars Hub Administrator, http://hub.hku.hk On 2010-12-30 10:22 AM, Thornton, Susan M. (LARC-B702)[LITES] wrote:
Hi, We are working on an interface between a legacy system and DSpace 1.5.1 and I keep running into problems with special characters in the text. NASA research documents have lots of different special characters in them – some of them are common ones such as the degree symbol - ° and some of them are more uncommon ones such as “right ceiling” - ⌉ (see http://myhandbook.info/codes_htmlchr.html for a pretty good list of symbols and their equivalent “character references”). The interface is fairly new and so far we’ve just been adding code to the extract program that outputs an xml file, to replace the special character or symbol with the equivalent “character reference” as we identify them. Inevitably though, the program is going to abend when it finds a symbol we haven’t coded for and we’re going to have to keep changing it to replace new symbols. I did some Googling today, trying to find an already-existing JAVA method or class that replaces symbols with the equivalent character reference, hoping that I don’t have to write one myself, but so far have not found one. Does anyone know of one? Thanks in advance, Sue Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract SGT, Inc.|130 Research Drive Hampton, Va. 23666 Office: (757) 224-4074 Mobile: (757) 506-9903 Fax: (757) 224-4001 susan.m.thorn...@nasa.gov ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
<?xml version="1.0" encoding="utf-8"?><dublin_core> <dcvalue element="title">¢£¤¥½¼¾ââââ¬Ï</dcvalue> </dublin_core>
------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech