From: Steve V. <vi...@ie...> - 2014-11-02 16:47:45
|
On Sun, Nov 2, 2014 at 8:35 AM, Felix Franz <fe...@fi...> wrote: > Hello, > > I have a problem using utf-8 characters in ehtml in yaws. > This yaws-file: > > <html> > <body> > Milú > <erl> > out(A) -> {ehtml, [{p, [], "Milú"}]}. </erl> > </body> > </html> > > produces the wrong output from the ehtml (the ú is rendered in latin-1 > encoding). > The first “Milú" renders just fine. > I've tried this and got the same result you did. One way to work around it is to change the ehtml line to this: out(A) -> {ehtml, [{p, [], <<"Milú/uft8">>}]}. Meanwhile I'll have a closer look at how ehtml is expanded to see if I can fix this. --steve |