Unicode support?
txdv opened this issue · comments
I'm trying to print some characters which are actively used by the rest of the world:
ctx.Response.WriteLine("ąčęėįšųūžöüöä");
This basically fails instantly, only "?" is printed out. Loading stuff from files doesn't work as well.
Try this:
ctx.Response.ContentEncoding = System.Text.Encoding.UTF8;
Can I set this globally, or do I have to do this for every Response instance?
Yeah unfortunately right now it would have to be done on every one. Maybe it should be the default though.
It doesn't have to be a default, the best solution would be to make it a "global setting", for example, so that one would have to set the encoding in the constructor of the ManosApp derived class.
Great idea, I think I'll add a ManosApp:DefaultEncoding property.
Heh, I finally tried it out, but now instead of "?????" I get "Ä…Ä�Ä™ÄįÅųūžöüöä".
How about adding DEFAULT_ENCODING to ManosConfig?
What ManosConfig?