积极答复者
bytes string转换问题

问题
答案
全部回复
-
%PDF-1.4
%����
4 0 obj <</Intent/Perceptual/DecodeParms<</Colors 3/Predictor 15/BitsPerComponent 8/Columns 425>>/Type/XObject/ColorSpace[/CalRGB<</Matrix[0.41239 0.21264 0.01933 0.35758 0.71517 0.11919 0.18045 0.07218 0.9504]/Gamma[2.2 2.2 2.2]/WhitePoint[0.95043 1 1.09]>>]/Subtype/Image/BitsPerComponent 8/Width 425/Length 17267/Height 81/Filter/FlateDecode>>stream
x^������ѕ��t�KTT�A{��(�_Ԩijb�cbKT�&j�&���(`A��(RDE�H�"H/�����8�w�{0��y�;;;s��̙��LQ*�
J�����.]���g�����E%�'�w���\���>���A�Vݸ��$%H0�` ? My ���Q��y�nР|T�N�m��P��Autfs 是从pdf读出来的乱码
-
Hi
我没有重现你的问题,你可以尝试以下代码看看是否还会有问题。
String str = "Example String"; var bytes = System.Text.Encoding.UTF8.GetBytes(str); string a = Encoding.UTF8.GetString(bytes); var newbyte = System.Text.Encoding.UTF8.GetBytes(a);
Result:
Best Regards,
Jack
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
-
Hi
感谢您的反馈
你可以标记对您有用的回复为答案,这标志着这个帖子结束了。
Best Regards,
Jack
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.