Hi everyone.
I want to include a very long text (a book) on my app, and for that I am using a .txt as an embedded resource. I am using this code to do it:
var assembly = IntrospectionExtensions.GetTypeInfo(typeof(Contenido)).Assembly; Stream stream = assembly.GetManifestResourceStream("RetornoApp.Retorno.txt"); string contenido = ""; using (var reader = new StreamReader(stream)) { contenido = reader.ReadToEnd(); } Label label = new Label() { Text = contenido};
It's working almost fine. The problem is that the characters such as áéíóú are not being written correctly, and a � is being displayed instead. It is a book in spanish so it's not a small problem since these characters are frequent.
I am guessing it's beacuse I am using a stream
?
Thanks!!!