---
title: "native2ascii"
author: "wingware"
date: "2012-09-14T01:11:17Z"
tags: []
categories: ["Web前端"]
slug: "native2ascii"
draft: false
lastmod: "2012-09-14T01:11:17Z"
id: 1678235
url: "https://wingware.iteye.com/blog/1678235"
---

1、转换properties文件　　
native2ascii -decoding UTF-8 allMessages_zh_CN.input.properties allMessages_zh_CN.properties
　　将文件allMessages_zh_CN.input.properties编码后输出为allMessages_zh_CN.properties。
　　为了方便properties文件的管理，建议纯中文的配置文件用input命名。
　　2、反向单一properties文件　　
native2ascii -reverse allMessages_zh_CN.properties allMessages_zh_CN.txt
　　注意-reverse参数