Re: [xml] Substituting Umlauts by Unicode (&#x...) entities

On Thu, Jan 23, 2003 at 11:45:12AM +0100, Holger Rauch wrote:
After the document is parsed, I need to extract the contents of
"/SELECT/SQL/WHERE" in a way that any umlauts in there are substituted
by the corresponding Unicode entity:

ä ==> ä
ß ==> ß

  The internal representation is the UTF-8 string for those characters.
This cannot be changed.

etc. in order to avoid displaying unreadable UTF-8 characters on an ISO-8859-1
terminal window. (Subsituting them during the parsing process would also be
OK, if that's possible).

  Ask for "ascii" encoding on output.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]