开发者

Converting ASCII text to Unicode with formatting [closed]

开发者 https://www.devze.com 2023-03-24 02:46 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_如何学JAVA Improve this question

Is there a free tool under linux system, for converting ascii text to unicode by keeping original text formatting ?


iconv can convert between different encodings, if that's what you mean.


Sure, it's called cat:

cat myasciifile > myunicodefile

Now myunicodefile consists of unicode codepoints, encoded in the popular UTF8 encoding. Note that this assumes that myasciifile consists only of legal ASCII characters (i.e. in the range 0-127).

An alternative to this is cp.

0

精彩评论

暂无评论...
验证码 换一张
取 消