playerPrefs problem with 2byte language

hi? All.
I use playerPrefs.SetString with English is OK.
ButWhen I use it like this …

playerPrefs.SetString(mykeyname with English, value with KOREAN) <— value is Korean language.

and playerPrefs.GetString(mykeyname with English) -->> “”

What’s Wrong ?
That’s why Unity doesn’t Support 2bytes Language ?

is there no solution ?
Any help is ok.
Please help me !!!

Please submit a bug report with simple repro case attached to it.
Thanks!

I just tried it and it works fine. Use UTF-8 for your scripts.

–Eric

Convert the value to a byte array using System.Encoding then convert the array to ASCII and save.
When you want to load the string convert it to a byte array then convert it back to your encoding.

That’s really unnecessary. Just save scripts using UTF-8. Text in scripts is always saved as 2 bytes in a build anyway, so there’s no point whatsoever in using ASCII.

–Eric