Re: [xsl] character map "range" in XSLT

Subject: Re: [xsl] character map "range" in XSLT
From: "steve.majewski@xxxxxxxxx" <steve.majewski@xxxxxxxxx>
Date: Wed, 12 May 2010 15:47:52 -0400
On May 12, 2010, at 3:27 PM, David wrote:


What version of *x are you using ? On my RedHat FC11 there is no such option.



Mac OSX.
Sorry: I just checked on FedoraCore 12 and that version doesn't support that switch.
( I wrongly assumed GNU iconv would be pretty much the same on both. )


Mac: $ iconv --version
iconv (GNU libiconv 1.11)
Copyright (C) 2000-2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible.



Fedora: $ iconv --version
iconv (GNU libc) 2.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.




-------------------------
David A. Lee
dlee@xxxxxxxxxxx
http://www.calldei.com
http://www.xmlsh.org

On May 12, 2010, at 2:56 PM, David wrote:

Thanks, but I dont see anything in the man page for iconv thats me specify a range of invalid and a substitution string for them.



The invalid range is determined by the destination encoding. Use: '-t US-ASCII'


--unicode-subst=formatstring
When this option is given, Unicode characters that cannot be
represented in the target encoding are replaced with a place-
holder string that is constructed from the given formatstring,
applied to the Unicode code point. The formatstring must be a
format string in the same format as for the printf command or
the printf() function, taking either no argument or exactly one
unsigned integer argument.


Use that option: --unicode-subst='<UNKNOWN_CHARACTER>' to set the replacement string.
( assuming unicode input )


-- Steve Majewski

Current Thread