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

Added code example for ModPerl 2 #357

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions articles/http-charset/index.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ <h2 id="scripting"><a href="#scripting">Scripting the header</a></h2>
<p><strong class="leadin">Perl.</strong> Output the correct header before any part of the actual page. After the last header, use a double
linebreak, e.g.:<br />
<code>print "Content-Type: text/html; charset=utf-8\n\n";</code></p>
<p><strong class="leadin">ModPerl 2.</strong> Set the correct header before sending any part of the actual page, e.g.:<br />
<code>$r->content_type('text/html; charset=utf-8');</code></p>
<p><strong class="leadin">Python.</strong> Use the same solution as for Perl (except that you don't need a semicolon at the end).</p>
<p><strong class="leadin">PHP.</strong> Use the <a class="print" href="http://www.php.net/header">header()</a> function before generating any content,
e.g.: <br />
Expand Down