Problems with encoding

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.

1 Like

Most probably a display issue, please make sure your terminal is using utf-8.

1 Like

28%20PM

1 Like

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…

1 Like

In this case, how can I change my input’s encoding to UTF-8?

1 Like

Depends on how you get your input…

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.