Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AboutUsPage does not support Turkish characters. #80

Open
saklanmazozgur opened this issue Dec 1, 2021 · 0 comments
Open

AboutUsPage does not support Turkish characters. #80

saklanmazozgur opened this issue Dec 1, 2021 · 0 comments

Comments

@saklanmazozgur
Copy link

saklanmazozgur commented Dec 1, 2021

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.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant