xsl-list
[Top] [All Lists]

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

2010-05-12 14:48:19

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(_at_)calldei(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>