bpatel | 87d64cc | 2010-07-14 15:42:06 -0700 | [diff] [blame^] | 1 | ." Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 2 | ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 3 | ." |
| 4 | ." This code is free software; you can redistribute it and/or modify it |
| 5 | ." under the terms of the GNU General Public License version 2 only, as |
| 6 | ." published by the Free Software Foundation. |
| 7 | ." |
| 8 | ." This code is distributed in the hope that it will be useful, but WITHOUT |
| 9 | ." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | ." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 11 | ." version 2 for more details (a copy is included in the LICENSE file that |
| 12 | ." accompanied this code). |
| 13 | ." |
| 14 | ." You should have received a copy of the GNU General Public License version |
| 15 | ." 2 along with this work; if not, write to the Free Software Foundation, |
| 16 | ." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 17 | ." |
ohair | 2283b9d | 2010-05-25 15:58:33 -0700 | [diff] [blame] | 18 | ." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
| 19 | ." or visit www.oracle.com if you need additional information or have any |
| 20 | ." questions. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 21 | ." |
bpatel | 87d64cc | 2010-07-14 15:42:06 -0700 | [diff] [blame^] | 22 | .TH native2ascii 1 "02 Jun 2010" |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 23 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 24 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 25 | .SH "Name" |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 26 | native2ascii \- Native\-to\-ASCII Converter |
| 27 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 28 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 29 | |
| 30 | .LP |
| 31 | .LP |
| 32 | Converts a file with native\-encoded characters (characters which are non\-Latin 1 and non\-Unicode) to one with Unicode\-encoded characters. |
| 33 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 34 | .RE |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 35 | .SH "SYNOPSIS" |
| 36 | .LP |
| 37 | |
| 38 | .LP |
| 39 | .nf |
| 40 | \f3 |
| 41 | .fl |
| 42 | \fP\f4native2ascii\fP\f2 [options] [inputfile [outputfile]]\fP |
| 43 | .fl |
| 44 | .fi |
| 45 | |
| 46 | .LP |
| 47 | .SH "DESCRIPTION" |
| 48 | .LP |
| 49 | |
| 50 | .LP |
| 51 | .LP |
| 52 | The Java compiler and other Java tools can only process files which contain Latin\-1 and/or Unicode\-encoded (\\udddd notation) characters. \f2native2ascii\fP converts files which contain other character encodings into files containing Latin\-1 and/or Unicode\-encoded charaters. |
| 53 | .LP |
| 54 | .LP |
| 55 | If \f2outputfile\fP is omitted, standard output is used for output. If, in addition, \f2inputfile\fP is omitted, standard input is used for input. |
| 56 | .LP |
| 57 | .SH "OPTIONS" |
| 58 | .LP |
| 59 | |
| 60 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 61 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 62 | .TP 3 |
| 63 | \-reverse |
| 64 | Perform the reverse operation: convert a file with Latin\-1 and/or Unicode encoded characters to one with native\-encoded characters. |
| 65 | .br |
| 66 | .br |
| 67 | .TP 3 |
| 68 | \-encoding encoding_name |
| 69 | Specify the encoding name which is used by the conversion procedure. The default encoding is taken from System property \f2file.encoding\fP. The \f2encoding_name\fP string must be taken from the first column of the table of supported encodings in the |
| 70 | .na |
| 71 | \f4Supported Encodings\fP @ |
| 72 | .fi |
| 73 | http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.html document. |
| 74 | .TP 3 |
| 75 | \-Joption |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 76 | Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the java(1). For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes. |
| 77 | .RE |
| 78 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 79 | .LP |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 80 | |