Available in

(1) (1)/ja (1)/ja_JP

TOC

native2ascii(1)                                                native2ascii(1)




       native2ascii -  ASCII


       native2ascii [ -encoding encoding_name] [ -reverse ] [ -J option ]
            [ inputfile [outputfile]]


       javac(1)

       Java

       Latin-1  Unicode

       (\udddd)

       native2ascii

       Latin-1

       Unicode


       outputfile

       inputfile



       -encoding encoding_name


            file.encoding

            encoding_name

             1

            http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html

       -reverse

            Latin-1

            Unicode


       -J option      option
                       Java option Java  java(1)
                       1 -J-Xms48m
                       48M -J





                                 2001  11  30                  native2ascii(1)

COMMENTS

1
Alternatively, if you regularly translate using Gettext PO tools, you can use prop2po (http://translate.sourceforge.n … it/prop2po) from the Translate Toolkit which handles all ASCII escaping automatically.

e.g.
prop2po some.properties some.po
Edit some.po
po2prop -t some.properties some.po some-other.properties

Unescaping from some.properties happens immediately.  You edit some.po in a PO editor in UTF-8. Conversion back takes any Unicode characters and escapes them correctly for Java.  Painless.
2008-02-22 14:56:21
Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.