essential-ui-kit-for-xamarin.forms icon indicating copy to clipboard operation
essential-ui-kit-for-xamarin.forms copied to clipboard

AboutUsPage does not support Turkish characters.

Open saklanmazozgur opened this issue 3 years ago • 0 comments

Hello,

While reading the data in the about.json file in AboutUsPage, it gives an error if there are Turkish characters. The error occurs in the following function.

private static T PopulateData<T>(string fileName)
        {
            var file = "OnBoarding2.Data." + fileName;

            var assembly = typeof(App).GetTypeInfo().Assembly;

            T data;

            using (var stream = assembly.GetManifestResourceStream(file))
            {
                var serializer = new DataContractJsonSerializer(typeof(T));
                **data = (T)serializer.ReadObject(stream);**
            }

            return data;
        }

Error : System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'

saklanmazozgur avatar Dec 01 '21 19:12 saklanmazozgur