I was trying to save a file location as a PlayerPref in Unity version 2020.3.18 however, whenever I retrieved the string, it would look normal. When going into the registry however, the string would be saved with a weird suffix after the string inputted. Does anybody have a way around this?
Ex)
Entered as C:/Users/user/Documents/Folder
PlayerPrefs.SetString("FileLocation", "C:/Users/user/Documents/Folder");
Retrieved as C:/Users/user/Documents/Folder
string folderLocation = PlayerPrefs.GetString("FileLocation");
Debug.Log(folderLocation);
In the registry the FileLocation PlayerPref saves the string as: C:/Users/user/Documents/Folderâ…
Problem
The part I am wondering about is why it adds the â… suffix to the string. When I remove the â… part of the string from the registry manually, the entire program works again. I need a way to get the string and get the folder location.