J
J
Joker4562017-09-07 13:45:32
C++ / C#
Joker456, 2017-09-07 13:45:32

How to convert from UCS2 to UTF-8?

Good day to all, help me how to convert a string from an incomprehensible format to a normal form (readable).
Data comes from SerialPort from GSM modem teleofis I
read them port.ReadExisting() as a result I get the string ????\r??\nє©Hш
knowing that the modem transmits data in UCS2 format tried to convert from UTF-16 to UTF-8 without success (
Reading mode text ( = 1 ), format of received data port.Encoding = Encoding.Default;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question