Joke Collection Website - Blessing messages - High marks for a method to convert utf-8 to gbk Java

High marks for a method to convert utf-8 to gbk Java

It depends on the interface it provides

new String(byte[], String)

For transcoding, this is enough, no need What else could this be like? You can’t go wrong with this one

1. First make sure that you have successfully transferred it. It is best to test it line by line and check the format after each sentence. It is best to write a test code to output the format after each sentence to see the string and format. They must be viewed separately

2. Make sure your utfStr is UTF8, and make sure the interface it provides is received according to GBK.

As long as these two points are met, there should be no problem, please check more

And pay attention to see if it is caused by different versions of MAS