|
zlt004
初级用户
 
积分 36
发帖 10
注册 2006-9-13
状态 离线
|
『楼 主』:
怎样输入的是ascll码但是输出字符?
使用 LLM 解释/回答一下
怎样输入的是ascll码但是输出字符?
How to input ASCII code but output the character?
|
|
2006-9-14 01:10 |
|
|
zlt004
初级用户
 
积分 36
发帖 10
注册 2006-9-13
状态 离线
|
|
2006-9-14 01:47 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
请检查你在顶楼的问题是否描述清楚之后,再继续发问。
Please check whether the question in the top post is clearly described before continuing to ask questions.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-14 01:51 |
|
|
zlt004
初级用户
 
积分 36
发帖 10
注册 2006-9-13
状态 离线
|
『第 4 楼』:
哦~~
使用 LLM 解释/回答一下
就是说把一个字符转成ascll
再用CMD把他转化成字符输出
比如把a的ascll是110001
那就在CMD下输入的是110001
但是输出的是a
不知道清楚了没有
It means converting a character to ASCII, and then using CMD to convert it back to the character for output. For example, the ASCII of 'a' is 110001. Then you would input 110001 in CMD, but the output would be 'a'.
I wonder if it's clear enough.
|
|
2006-9-14 07:30 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
|
2006-9-14 11:42 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
以前见过10进制和16进制互换的批处理,基本原理是把10进制下0~9的字符转换为对应的16进制字符。其实,只要有张换算表,这个问题还是比较容易解决的。可惜我不知道这个换算表啥模样。
I have seen batch scripts for converting between decimal and hexadecimal before. The basic principle is to convert the characters 0-9 in decimal to the corresponding hexadecimal characters. In fact, as long as there is a conversion table, this problem is relatively easy to solve. Unfortunately, I don't know what that conversion table looks like.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-14 12:26 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
16进制换为10进制很简单:“set /a N=0xFFFF”
2、8、10、16进制换算还是用批处理命令方便,换算表很受限制
PS:昨天在网上找到一张 ASCII to UniCode 的换算表,145k,7445个对照,做成“set ASCII=UniCode”后用了10秒才载入完毕;晚上做了个批处理用了3个小时转换成 ASCII to UTF-8 换算表,也是100多k
要转换为文字显示,还是要用到“16进制字符文本/二进制文件迷你互转器”(ASCII)
Last edited by zxcv on 2006-9-14 at 01:34 ]
Converting hexadecimal to decimal is very simple: "set /a N=0xFFFF"
Converting between binary, octal, decimal, and hexadecimal is more convenient with batch commands, while conversion tables are quite limited
PS: I found an ASCII to Unicode conversion table online yesterday, which is 145k and has 7445 pairs. After making "set ASCII=UniCode", it took 10 seconds to load; I made a batch file last night and it took 3 hours to convert it to an ASCII to UTF-8 conversion table, which is also over 100k
To display as text, you still need to use the "Mini Converter for Hexadecimal Character Text/Binary File (ASCII)"
Last edited by zxcv on 2006-9-14 at 01:34 ]
|
|
2006-9-14 13:29 |
|