|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『楼 主』:
文件编码转换
使用 LLM 解释/回答一下
把UTF-8编码转换成ANSI编码怎样写批理,请高手们帮帮忙
How to write a batch script to convert UTF-8 encoding to ANSI encoding? Please help, experts.
|
|
2007-3-9 06:31 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
一般最好通过查找对照表方式来转换
Generally, it is best to convert by finding a comparison table method
|
|
2007-3-9 06:37 |
|
|
jmz573515
银牌会员
    
积分 1212
发帖 464
注册 2006-12-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
楼主举个列子看看,是把什么转换成什么 (有点蒙..) :)
The landlord gives an example to see, what is converted into what (a bit confused..) :)
|
|
2007-3-9 07:06 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
貌似直接 for 就转换了
It seems that it is directly converted with for.
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-3-9 07:23 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by electronixtar at 2007-3-8 06:23 PM:
貌似直接 for 就转换了
我是这样转的
more utf8.txt >ansi.txt
%cmdspec% /u more ansi.txt >utf8.txt
for怎么转
Originally posted by electronixtar at 2007-3-8 06:23 PM:
It seems that it can be converted directly with for.
I converted it like this
more utf8.txt >ansi.txt
%cmdspec% /u more ansi.txt >utf8.txt
How to convert with for
|
|
2007-3-9 11:49 |
|
|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
谁能给我源代码啊,现在问题还没解决
Who can give me the source code? The problem hasn't been solved yet.
|
|
2007-3-9 21:30 |
|
|
pillow
初级用户
 
积分 196
发帖 82
注册 2005-9-26
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
??這個用DOS也可以實現嗎?好厲害!
我只是知道有個叫convertZ的軟件可以實現這個功能,而且也可以批量的做,LZ要不要試試?
Can this be achieved with DOS too? So amazing!
I just know there is a software called convertZ that can achieve this function, and it can also do it in batches. LZ, do you want to give it a try?
|
|
2007-3-9 22:00 |
|
|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by pillow at 2007-3-9 09:00 AM:
??這個用DOS也可以實現嗎?好厲害!
我只是知道有個叫convertZ的軟件可以實現這個功能,而且也可以批量的做,LZ要不要試試?
这个用批量怎么做,帮帮忙
我一般是用记事本来转换,但我不知道,记事本怎样做批量。
Originally posted by pillow at 2007-3-9 09:00 AM:
?? Can this be achieved with DOS too? So amazing!
I just know there is a software called convertZ that can achieve this function, and it can also do batch processing. LZ, do you want to give it a try?
How to do batch processing for this? Please help.
I usually use Notepad to convert, but I don't know how to do batch processing with Notepad.
|
|
2007-3-9 22:09 |
|
|
pillow
初级用户
 
积分 196
发帖 82
注册 2005-9-26
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
不是說用記事本可以批量轉換啦,
是說 convertZ 可以
It's not that you can batch convert with Notepad,
It means convertZ can
|
|
2007-3-9 22:10 |
|
|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by pillow at 2007-3-9 09:10 AM:
不是說用記事本可以批量轉換啦,
是說 convertZ 可以
这个软件我下载啦,好像没法的写到批量处理代码,我要做的是用批量文件形式来改文件编码。
Originally posted by pillow at 2007-3-9 09:10 AM:
It's not that you can use Notepad for batch conversion,
It means that convertZ can
I downloaded this software, but it seems there's no way to write batch processing code. What I need to do is to change the file encoding in the form of a batch file.
|
|
2007-3-9 23:57 |
|
|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by zh159 at 2007-3-8 05:37 PM:
一般最好通过查找对照表方式来转换
你的建议很好,能不能说得更祥细一点
Originally posted by zh159 at 2007-3-8 05:37 PM:
It is generally best to convert by looking up a comparison table.
Your suggestion is very good. Can you be more detailed?
|
|
2007-3-9 23:59 |
|
|
jmz573515
银牌会员
    
积分 1212
发帖 464
注册 2006-12-13
状态 离线
|
|
2007-3-10 01:31 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
使用TYPE命令最简单:type c:\u8.txt >c:\a.txt
Using the TYPE command is the simplest: type c:\u8.txt > c:\a.txt
|
|
2007-3-10 01:39 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
原来是type,我记成for了
So it was type, I mistook it for for.
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-3-10 01:58 |
|
|
jdxhyuan
初级用户
 
积分 26
发帖 11
注册 2007-3-9
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by HUNRYBECKY at 2007-3-9 12:39 PM:
使用TYPE命令最简单:type c:\u8.txt >c:\a.txt
这样只是实现了把u8.txt的内容输出到a.txt中,这样跟文件改名差不多。
Originally posted by HUNRYBECKY at 2007-3-9 12:39 PM:
The simplest way to use the TYPE command: type c:\u8.txt >c:\a.txt
This only achieves outputting the content of u8.txt to a.txt, which is similar to renaming the file.
|
|
2007-3-10 05:30 |
|