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

Losing UTF-8 when rendering one file inside anoter #35

Open
deemytch opened this issue Mar 21, 2014 · 1 comment
Open

Losing UTF-8 when rendering one file inside anoter #35

deemytch opened this issue Mar 21, 2014 · 1 comment

Comments

@deemytch
Copy link

$page = $haml->render_file("$doc_root/page.haml", cfg => $config );
$layout = $haml->render_file("$doc_root/layout.haml", yield => $page );

renders the first time to something like that

<a class='navbar-brand' href='/'>Ши���н</a>
<h1 class='h1 navbar-right'>VPN и �е��</h1>

than repeating running the same code renders all ok.
checked with perl 5.10 openwrt, and 5.18.2 x86-64 linux.
file sizes are:

2.4K layout.haml
3.2K page.haml
@vti
Copy link
Owner

vti commented Mar 30, 2014

Try passing encoding option to the constructor.

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

2 participants