转换不可打印的字符十六进制 [英] convert non printable char ot hex

查看:191
本文介绍了转换不可打印的字符十六进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将包含不可打印的char的文件转换为十六进制,char转换效果很好,但是我对将不可打印的char转换成任何想法有疑问! :doh:

I need to convert file that contain non printable char to hex, the char conversion works well but i have problem on converting non printable char any ideas how it may be done ! :doh:

推荐答案

语录:字符转换效果很好,但是我对转换非可打印字符有任何想法,但可能有问题!".

这没有任何意义,任何以十六进制表示的字符都可以打印为两个十六进制数字.例如,如果十六进制值0x7F表示的字符是不可打印的,则可以用十六进制显示为两位数7F.

也许您的问题需要澄清.
Quote: "the char conversion works well but i have problem on converting non printable char any ideas how it may be done !".

This makes no sense, any character that is represented in hex is printable as two hexadecimal digits. For example, if the character represented by the hex value 0x7F is non-printable then it can be displayed in hex as the two digits 7F.

Or perhaps your question needs some clarification.


这篇关于转换不可打印的字符十六进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆