5865
|
1 |
." Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
2
|
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 |
."
|
5506
|
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.
|
2
|
21 |
."
|
5865
|
22 |
.TH native2ascii 1 "02 Jun 2010"
|
2692
|
23 |
|
2
|
24 |
.LP
|
2692
|
25 |
.SH "Name"
|
2
|
26 |
native2ascii \- Native\-to\-ASCII Converter
|
|
27 |
.LP
|
2692
|
28 |
.RS 3
|
2
|
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
|
2692
|
34 |
.RE
|
2
|
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
|
2692
|
61 |
.RS 3
|
2
|
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
|
2692
|
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 |
|
2
|
79 |
.LP
|
|
80 |
|