直接在vs2015里面硬编码一个string如string="123456",传入函数然后sha加密取base64值
发现分别用Encoding.UTF8.GetBytes和Encoding.Unicode.GetBytes解码string后使用的结果不一样.可只涉及到ascii值的话utf8和unicode值应该一样吧?怎么会结果不同?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可以对比下Encoding.Unicode.GetBytes和Encoding.UTF8.GetBytes各自返回的字节长度