开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 2920|回复: 6
收起左侧

[已回应] 字节集_文本转字节集 ,这个命令,文本转成相同字符的字节集,会漏掉首个字符

[复制链接]
结帖率:77% (17/22)
发表于 2019-2-21 02:09:52 | 显示全部楼层 |阅读模式   浙江省嘉兴市
text1={71,73,70,56,57,97,52,0,20,0,247,0,0,0,0,0,0,0,51,0,0,102,0,0,153,0,0,204,0,0,255,0,43,0,0,43,51,0,43,102,0,43,153,0,43,204,0,43,255,0,85,0,0,85,51,0,85,102,0,85,153,0,85,204,0,85,255,0,128,0,0,128,51,0,128,102,0,128,153,0,128,204,0,128,255,0,170,0,0,170,51,0,170,102,0,170,153,0,170,204,0,170,255,0,213,0,0,213,51,0,213,102,0,213,153,0,213,204,0,213,255,0,255,0,0,255,51,0,255,102,0,255,153,0,255,204,0,255,255,51,0,0,51,0,51,51,0,102,51,0,153,51,0,204,51,0,255,51,43,0,51,43,51,51,43,102,51,43,153,51,43,204,51,43,255,51,85,0,51,85,51,51,85,102,51,85,153,51,85,204,51,85,255,51,128,0,51,128,51,51,128,102,51,128,153,51,128,204,51,128,255,51,170,0,51,170,51,51,170,102,51,170,153,51,170,204,51,170,255,51,213,0,51,213,51,51,213,102,51,213,153,51,213,204,51,213,255,51,255,0,51,255,51,51,255,102,51,255,153,51,255,204,51,255,255,102,0,0,102,0,51,102,0,102,102,0,153,102,0,204,102,0,255,102,43,0,102,43,51,102,43,102,102,43,153,102,43,204,102,43,255,102,85,0,102,85,51,102,85,102,102,85,153,102,85,204,102,85,255,102,128,0,102,128,51,102,128,102,102,128,153,102,128,204,102,128,255,102,170,0,102,170,51,102,170,102,102,170,153,102,170,204,102,170,255,102,213,0,102,213,51,102,213,102,102,213,153,102,213,204,102,213,255,102,255,0,102,255,51,102,255,102,102,255,153,102,255,204,102,255,255,153,0,0,153,0,51,153,0,102,153,0,153,153,0,204,153,0,255,153,43,0,153,43,51,153,43,102,153,43,153,153,43,204,153,43,255,153,85,0,153,85,51,153,85,102,153,85,153,153,85,204,153,85,255,153,128,0,153,128,51,153,128,102,153,128,153,153,128,204,153,128,255,153,170,0,153,170,51,153,170,102,153,170,153,153,170,204,153,170,255,153,213,0,153,213,51,153,213,102,153,213,153,153,213,204,153,213,255,153,255,0,153,255,51,153,255,102,153,255,153,153,255,204,153,255,255,204,0,0,204,0,51,204,0,102,204,0,153,204,0,204,204,0,255,204,43,0,204,43,51,204,43,102,204,43,153,204,43,204,204,43,255,204,85,0,204,85,51,204,85,102,204,85,153,204,85,204,204,85,255,204,128,0,204,128,51,204,128,102,204,128,153,204,128,204,204,128,255,204,170,0,204,170,51,204,170,102,204,170,153,204,170,204,204,170,255,204,213,0,204,213,51,204,213,102,204,213,153,204,213,204,204,213,255,204,255,0,204,255,51,204,255,102,204,255,153,204,255,204,204,255,255,255,0,0,255,0,51,255,0,102,255,0,153,255,0,204,255,0,255,255,43,0,255,43,51,255,43,102,255,43,153,255,43,204,255,43,255,255,85,0,255,85,51,255,85,102,255,85,153,255,85,204,255,85,255,255,128,0,255,128,51,255,128,102,255,128,153,255,128,204,255,128,255,255,170,0,255,170,51,255,170,102,255,170,153,255,170,204,255,170,255,255,213,0,255,213,51,255,213,102,255,213,153,255,213,204,255,213,255,255,255,0,255,255,51,255,255,102,255,255,153,255,255,204,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,33,249,4,1,0,0,252,0,44,0,0,0,0,52,0,20,0,0,8,255,0,229,225,35,166,140,160,65,101,2,229,21,92,120,176,33,195,135,14,9,38,196,55,145,96,38,138,247,4,102,34,168,105,24,40,143,32,49,38,204,168,233,158,166,100,26,69,170,148,199,178,165,75,138,5,53,41,211,68,12,223,176,130,20,7,22,4,69,76,230,70,100,8,115,210,28,40,15,25,75,100,196,140,226,67,150,115,34,69,150,25,133,206,76,70,108,88,35,43,200,110,86,84,54,140,102,208,174,202,154,134,125,89,244,105,75,124,50,53,201,131,101,5,16,86,152,182,198,112,76,166,86,30,40,121,236,156,217,178,98,133,82,193,79,85,3,241,181,34,38,222,211,140,19,149,93,100,153,44,208,21,73,183,0,93,17,182,244,156,24,187,55,123,117,49,36,89,178,45,199,110,175,72,102,228,245,214,149,161,70,143,158,37,86,211,92,223,153,195,0,113,97,234,90,176,224,76,128,188,54,26,163,108,161,192,88,140,12,5,146,201,14,16,166,129,84,239,54,21,136,148,81,32,103,196,168,54,2,36,88,180,51,121,177,40,53,62,73,140,87,23,141,5,123,89,255,209,196,78,12,66,70,87,174,79,140,119,22,42,62,211,147,120,226,99,119,69,238,176,225,202,24,201,205,45,115,82,32,158,83,29,194,8,82,5,221,135,9,107,234,177,212,148,89,197,137,193,218,39,129,72,214,209,21,27,245,34,6,62,176,72,50,16,59,88,161,164,140,107,126,17,147,145,33,146,112,197,149,124,74,181,196,20,65,141,216,102,197,33,147,0,66,9,62,185,17,163,153,50,187,17,195,18,32,70,113,21,8,23,66,13,115,218,68,242,0,70,151,130,209,105,242,148,36,130,13,72,159,36,247,81,114,207,36,135,128,98,11,25,189,101,178,202,129,206,152,115,197,36,10,10,100,8,90,100,45,151,16,145,58,245,34,35,141,72,197,166,73,47,135,0,134,207,33,188,201,19,33,116,119,185,100,146,153,10,154,197,32,35,20,217,114,5,37,247,41,73,31,40,28,18,52,12,140,248,76,167,70,77,242,120,36,232,128,68,49,69,100,89,44,169,87,157,21,129,92,200,78,23,104,245,50,156,60,198,53,10,136,131,128,228,102,147,124,130,242,200,88,152,169,61,135,133,15,123,9,125,246,150,60,183,148,56,12,135,206,220,199,105,38,189,52,98,200,160,84,229,68,208,33,215,81,164,92,152,178,198,202,172,130,128,8,99,197,21,157,178,180,37,75,139,202,132,100,93,20,89,84,147,90,138,93,154,144,165,126,242,162,161,60,94,42,101,136,165,2,81,148,201,84,3,125,242,236,77,195,116,107,86,114,55,17,3,88,90,195,56,194,90,65,201,25,68,19,79,27,49,244,46,107,71,50,171,150,122,203,201,42,144,97,19,177,171,18,196,248,172,68,17,116,202,160,148,160,195,1,1,0,59}

上面这段文本    字节集_文本转字节集 (text1)   转成字节集后,会把文本的第一个字符 7 漏掉,不知道是什么原因????
头像被屏蔽
发表于 2019-7-29 18:06:31 | 显示全部楼层   辽宁省沈阳市
按照惯例  水贴长经验 爱谁谁把  就这玩意
回复 支持 反对

使用道具 举报

结帖率:77% (17/22)

签到天数: 2 天

 楼主| 发表于 2019-2-22 10:13:48 | 显示全部楼层   浙江省嘉兴市
.版本 2

.子程序 _按钮1_被单击
.局部变量 text1, 文本型

text1 = “{ 71, 73, 70, 56, 57, 97, 52, 0, 20, 0, 247, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 102, 0, 0, 153, 0, 0, 204, 0, 0, 255, 0, 43, 0, 0, 43, 51, 0, 43, 102, 0, 43, 153, 0, 43, 204, 0, 43, 255, 0, 85, 0, 0, 85, 51, 0, 85, 102, 0, 85, 153, 0, 85, 204, 0, 85, 255, 0, 128, 0, 0, 128, 51, 0, 128, 102, 0, 128, 153, 0, 128, 204, 0, 128, 255, 0, 170, 0, 0, 170, 51, 0, 170, 102, 0, 170, 153, 0, 170, 204, 0, 170, 255, 0, 213, 0, 0, 213, 51, 0, 213, 102, 0, 213, 153, 0, 213, 204, 0, 213, 255, 0, 255, 0, 0, 255, 51, 0, 255, 102, 0, 255, 153, 0, 255, 204, 0, 255, 255, 51, 0, 0, 51, 0, 51, 51, 0, 102, 51, 0, 153, 51, 0, 204, 51, 0, 255, 51, 43, 0, 51, 43, 51, 51, 43, 102, 51, 43, 153, 51, 43, 204, 51, 43, 255, 51, 85, 0, 51, 85, 51, 51, 85, 102, 51, 85, 153, 51, 85, 204, 51, 85, 255, 51, 128, 0, 51, 128, 51, 51, 128, 102, 51, 128, 153, 51, 128, 204, 51, 128, 255, 51, 170, 0, 51, 170, 51, 51, 170, 102, 51, 170, 153, 51, 170, 204, 51, 170, 255, 51, 213, 0, 51, 213, 51, 51, 213, 102, 51, 213, 153, 51, 213, 204, 51, 213, 255, 51, 255, 0, 51, 255, 51, 51, 255, 102, 51, 255, 153, 51, 255, 204, 51, 255, 255, 102, 0, 0, 102, 0, 51, 102, 0, 102, 102, 0, 153, 102, 0, 204, 102, 0, 255, 102, 43, 0, 102, 43, 51, 102, 43, 102, 102, 43, 153, 102, 43, 204, 102, 43, 255, 102, 85, 0, 102, 85, 51, 102, 85, 102, 102, 85, 153, 102, 85, 204, 102, 85, 255, 102, 128, 0, 102, 128, 51, 102, 128, 102, 102, 128, 153, 102, 128, 204, 102, 128, 255, 102, 170, 0, 102, 170, 51, 102, 170, 102, 102, 170, 153, 102, 170, 204, 102, 170, 255, 102, 213, 0, 102, 213, 51, 102, 213, 102, 102, 213, 153, 102, 213, 204, 102, 213, 255, 102, 255, 0, 102, 255, 51, 102, 255, 102, 102, 255, 153, 102, 255, 204, 102, 255, 255, 153, 0, 0, 153, 0, 51, 153, 0, 102, 153, 0, 153, 153, 0, 204, 153, 0, 255, 153, 43, 0, 153, 43, 51, 153, 43, 102, 153, 43, 153, 153, 43, 204, 153, 43, 255, 153, 85, 0, 153, 85, 51, 153, 85, 102, 153, 85, 153, 153, 85, 204, 153, 85, 255, 153, 128, 0, 153, 128, 51, 153, 128, 102, 153, 128, 153, 153, 128, 204, 153, 128, 255, 153, 170, 0, 153, 170, 51, 153, 170, 102, 153, 170, 153, 153, 170, 204, 153, 170, 255, 153, 213, 0, 153, 213, 51, 153, 213, 102, 153, 213, 153, 153, 213, 204, 153, 213, 255, 153, 255, 0, 153, 255, 51, 153, 255, 102, 153, 255, 153, 153, 255, 204, 153, 255, 255, 204, 0, 0, 204, 0, 51, 204, 0, 102, 204, 0, 153, 204, 0, 204, 204, 0, 255, 204, 43, 0, 204, 43, 51, 204, 43, 102, 204, 43, 153, 204, 43, 204, 204, 43, 255, 204, 85, 0, 204, 85, 51, 204, 85, 102, 204, 85, 153, 204, 85, 204, 204, 85, 255, 204, 128, 0, 204, 128, 51, 204, 128, 102, 204, 128, 153, 204, 128, 204, 204, 128, 255, 204, 170, 0, 204, 170, 51, 204, 170, 102, 204, 170, 153, 204, 170, 204, 204, 170, 255, 204, 213, 0, 204, 213, 51, 204, 213, 102, 204, 213, 153, 204, 213, 204, 204, 213, 255, 204, 255, 0, 204, 255, 51, 204, 255, 102, 204, 255, 153, 204, 255, 204, 204, 255, 255, 255, 0, 0, 255, 0, 51, 255, 0, 102, 255, 0, 153, 255, 0, 204, 255, 0, 255, 255, 43, 0, 255, 43, 51, 255, 43, 102, 255, 43, 153, 255, 43, 204, 255, 43, 255, 255, 85, 0, 255, 85, 51, 255, 85, 102, 255, 85, 153, 255, 85, 204, 255, 85, 255, 255, 128, 0, 255, 128, 51, 255, 128, 102, 255, 128, 153, 255, 128, 204, 255, 128, 255, 255, 170, 0, 255, 170, 51, 255, 170, 102, 255, 170, 153, 255, 170, 204, 255, 170, 255, 255, 213, 0, 255, 213, 51, 255, 213, 102, 255, 213, 153, 255, 213, 204, 255, 213, 255, 255, 255, 0, 255, 255, 51, 255, 255, 102, 255, 255, 153, 255, 255, 204, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 249, 4, 1, 0, 0, 252, 0, 44, 0, 0, 0, 0, 52, 0, 20, 0, 0, 8, 255, 0, 229, 225, 35, 166, 140, 160, 65, 101, 2, 229, 21, 92, 120, 176, 33, 195, 135, 14, 9, 38, 196, 55, 145, 96, 38, 138, 247, 4, 102, 34, 168, 105, 24, 40, 143, 32, 49, 38, 204, 168, 233, 158, 166, 100, 26, 69, 170, 148, 199, 178, 165, 75, 138, 5, 53, 41, 211, 68, 12, 223, 176, 130, 20, 7, 22, 4, 69, 76, 230, 70, 100, 8, 115, 210, 28, 40, 15, 25, 75, 100, 196, 140, 226, 67, 150, 115, 34, 69, 150, 25, 133, 206, 76, 70, 108, 88, 35, 43, 200, 110, 86, 84, 54, 140, 102, 208, 174, 202, 154, 134, 125, 89, 244, 105, 75, 124, 50, 53, 201, 131, 101, 5, 16, 86, 152, 182, 198, 112, 76, 166, 86, 30, 40, 121, 236, 156, 217, 178, 98, 133, 82, 193, 79, 85, 3, 241, 181, 34, 38, 222, 211, 140, 19, 149, 93, 100, 153, 44, 208, 21, 73, 183, 0, 93, 17, 182, 244, 156, 24, 187, 55, 123, 117, 49, 36, 89, 178, 45, 199, 110, 175, 72, 102, 228, 245, 214, 149, 161, 70, 143, 158, 37, 86, 211, 92, 223, 153, 195, 0, 113, 97, 234, 90, 176, 224, 76, 128, 188, 54, 26, 163, 108, 161, 192, 88, 140, 12, 5, 146, 201, 14, 16, 166, 129, 84, 239, 54, 21, 136, 148, 81, 32, 103, 196, 168, 54, 2, 36, 88, 180, 51, 121, 177, 40, 53, 62, 73, 140, 87, 23, 141, 5, 123, 89, 255, 209, 196, 78, 12, 66, 70, 87, 174, 79, 140, 119, 22, 42, 62, 211, 147, 120, 226, 99, 119, 69, 238, 176, 225, 202, 24, 201, 205, 45, 115, 82, 32, 158, 83, 29, 194, 8, 82, 5, 221, 135, 9, 107, 234, 177, 212, 148, 89, 197, 137, 193, 218, 39, 129, 72, 214, 209, 21, 27, 245, 34, 6, 62, 176, 72, 50, 16, 59, 88, 161, 164, 140, 107, 126, 17, 147, 145, 33, 146, 112, 197, 149, 124, 74, 181, 196, 20, 65, 141, 216, 102, 197, 33, 147, 0, 66, 9, 62, 185, 17, 163, 153, 50, 187, 17, 195, 18, 32, 70, 113, 21, 8, 23, 66, 13, 115, 218, 68, 242, 0, 70, 151, 130, 209, 105, 242, 148, 36, 130, 13, 72, 159, 36, 247, 81, 114, 207, 36, 135, 128, 98, 11, 25, 189, 101, 178, 202, 129, 206, 152, 115, 197, 36, 10, 10, 100, 8, 90, 100, 45, 151, 16, 145, 58, 245, 34, 35, 141, 72, 197, 166, 73, 47, 135, 0, 134, 207, 33, 188, 201, 19, 33, 116, 119, 185, 100, 146, 153, 10, 154, 197, 32, 35, 20, 217, 114, 5, 37, 247, 41, 73, 31, 40, 28, 18, 52, 12, 140, 248, 76, 167, 70, 77, 242, 120, 36, 232, 128, 68, 49, 69, 100, 89, 44, 169, 87, 157, 21, 129, 92, 200, 78, 23, 104, 245, 50, 156, 60, 198, 53, 10, 136, 131, 128, 228, 102, 147, 124, 130, 242, 200, 88, 152, 169, 61, 135, 133, 15, 123, 9, 125, 246, 150, 60, 183, 148, 56, 12, 135, 206, 220, 199, 105, 38, 189, 52, 98, 200, 160, 84, 229, 68, 208, 33, 215, 81, 164, 92, 152, 178, 198, 202, 172, 130, 128, 8, 99, 197, 21, 157, 178, 180, 37, 75, 139, 202, 132, 100, 93, 20, 89, 84, 147, 90, 138, 93, 154, 144, 165, 126, 242, 162, 161, 60, 94, 42, 101, 136, 165, 2, 81, 148, 201, 84, 3, 125, 242, 236, 77, 195, 116, 107, 86, 114, 55, 17, 3, 88, 90, 195, 56, 194, 90, 65, 201, 25, 68, 19, 79, 27, 49, 244, 46, 107, 71, 50, 171, 150, 122, 203, 201, 42, 144, 97, 19, 177, 171, 18, 196, 248, 172, 68, 17, 116, 202, 160, 148, 160, 195, 1, 1, 0, 59 }”
图片框1.图片 = 字节集_文本转字节集 (text1)

已经可以的,大概是我搞错了.谢谢回答
回复 支持 0 反对 1

使用道具 举报

结帖率:77% (17/22)

签到天数: 2 天

 楼主| 发表于 2019-2-22 10:08:57 | 显示全部楼层   浙江省嘉兴市
本帖最后由 走一回 于 2019-2-22 10:10 编辑
jr21066 发表于 2019-2-21 19:13
可以把有问题的代码精简一下传上来看看.
刚才把文本加到常量里试了.是好的.

可能电脑系统或是易语言在不同的电脑上有所差别,不过,编码后已经解决了,谢谢
回复 支持 反对

使用道具 举报

发表于 2019-2-22 10:04:41 | 显示全部楼层   广东省揭阳市
TIM截图20190222100355.png
并未出现楼主说的问题哦,如有必要可附上相关的错误源码哦
回复 支持 反对

使用道具 举报

结帖率:77% (17/22)

签到天数: 2 天

 楼主| 发表于 2019-2-21 20:45:16 | 显示全部楼层   浙江省嘉兴市
已经知道原因了,是编码问题 ,要先 编码_Ansi到Utf8()  ,好像是这个命令,先转码,再   文本转字节集()
直接  文本转字节集会把第一个字符漏掉,编码后再转就没问题.
回复 支持 反对

使用道具 举报

结帖率:100% (11/11)

签到天数: 22 天

发表于 2019-2-21 19:13:40 | 显示全部楼层   陕西省渭南市
可以把有问题的代码精简一下传上来看看.
刚才把文本加到常量里试了.是好的.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表