You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

native2ascii.html 1.9 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <html>
  2. <head><title>Native2Ascii</title></head>
  3. <body>
  4. <h2>Native2Ascii</h2>
  5. <h3>Description:</h3>
  6. <p>Converts files from native encodings to ascii with escaped Unicode.
  7. A common usage is to convert source files maintained in a native
  8. operating system encoding, to ascii prior to compilation.</p>
  9. <p>All matching files in the source directory are converted from a
  10. native encoding to ascii. If no encoding is specified, the default
  11. encoding for the JVM is used. If ext is specified, then output
  12. files are renamed to use it as a new extension. If dest and
  13. src point to the same directory, ext is required.</p>
  14. <p>This is a directory based task, and supports includes, includesfile,
  15. excludes, excludesfile, and defaultexcludes along with its specific
  16. attributes.</p>
  17. <pre>
  18. Attribute Description Required
  19. -----------------------------------------------------------
  20. reverse Reverse the sense of the conversion, No
  21. i.e. convert from ascii to native
  22. encoding The native encoding the files are in No
  23. src The directory to find files in No
  24. dest The directory to output file to Yes
  25. ext File extension to use in renaming No
  26. output files
  27. </pre>
  28. <h3>Examples</h3>
  29. <pre>
  30. &lt;native2ascii encoding=&quot;EUCJIS&quot; src=&quot;srcdir&quot; dest=&quot;srcdir&quot;
  31. includes=&quot;**/*.eucjis&quot; ext=&quot;.java&quot; /&gt;
  32. </pre>
  33. <p>Converts all files in the directory srcdir ending in eucjis
  34. from the EUCJIS encoding to ascii and renames the to end in
  35. .java.</p>
  36. <pre>
  37. &lt;native2ascii encoding='EUCJIS&quot; src=&quot;native/japanese&quot; dest=&quot;src&quot;
  38. includes=&quot;**/*.java /&gt;
  39. </pre>
  40. <p>Converts all the files ending in .java in the directory native/japanese
  41. to ascii, placing the results in the directory src. The names of
  42. the files remain the same.</p>
  43. </body>
  44. </html>