China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 17:11
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » File encoding conversion View 2,250 Replies 17
Floor 16 Posted 2007-03-10 05:46 ·  中国 云南 普洱 电信
初级用户
Credits 26
Posts 11
Joined 2007-03-09 04:28
19-year member
UID 81145
Gender Male
Status Offline
Originally posted by everest79 at 2007-3-8 10:49 PM:

This is how I converted
more utf8.txt >ansi.txt
%cmdspec% /u more ansi.txt >utf8.txt

How to convert with for

I used more utf8.txt >ansi.txt to change the file encoding, but the content inside was also changed. If I use Notepad to change it, the content won't be changed. Also, what function does %cmdspec% /u more ansi.txt >utf8.txt achieve? I can't execute it here.
Floor 17 Posted 2007-03-10 08:25 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
This has converted U8 to A text, and the encoding format is no longer U8. You can use the UE text editor to check it.
Floor 18 Posted 2007-03-13 06:40 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
I made a mistake, confusing UTF-8 with Unicode
Forum Jump: