I get this “ÐÑÐ¸Ð²ÐµÑ”, instead of this “Привет”. How to translate string to UTF8 encoding? I’ve already watched a lot of different forums, but I still unable to solve this problem.
Most probably a display issue, please make sure your terminal is using utf-8.
Then make sure your input is properly utf-8 encoded.
Go will usually assume that all strings are properly utf-8 encoded, if though your input is wrong, then strange things might happen. Without knowing your code and how you get data into the program, we can’t tell more than this…
In this case, how can I change my input’s encoding to UTF-8?
Depends on how you get your input…
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.