---
title: "linux iconv使用"
author: "winds_he"
date: "2013-06-08T15:39:09Z"
tags: []
categories: ["操作系统"]
slug: "linux-iconv"
draft: false
lastmod: "2013-06-08T15:39:09Z"
id: 1884447
url: "https://winds-he.iteye.com/blog/1884447"
---

文件出现乱码时，可以通过多种方法进行转码，如:

只查看
iconv -f from_encoding -t to_encoding
或转后输出
iconv -f from_encoding -t to_encoding -o file

编码查看：
iconv -l