[Bps-public-commit] Prophet branch, master, updated. 0.72-4-g6600c27

jesse jesse at bestpractical.com
Thu Sep 10 04:34:29 EDT 2009


The branch, master has been updated
       via  6600c27e7dbf990d3b2e793ca50546ad4bde5ded (commit)
      from  c1b563b7cf7e19a911cbdd598a15a70c4238ac48 (commit)

Summary of changes:
 lib/Prophet/Server/View.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 6600c27e7dbf990d3b2e793ca50546ad4bde5ded
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Sep 10 04:33:35 2009 -0400

    make the static webui default to utf8.
    
    Fixes  RT 49528
    
           Queue: App-SD
         Subject: publish --html HTML still doesn't handle non-ASCII correctly

diff --git a/lib/Prophet/Server/View.pm b/lib/Prophet/Server/View.pm
index aa6104b..1320857 100644
--- a/lib/Prophet/Server/View.pm
+++ b/lib/Prophet/Server/View.pm
@@ -105,6 +105,8 @@ template head => sub {
     my $self = shift;
     my @args = shift;
     head {
+        meta { attr { content => "text/html; charset=utf-8",
+                      'http-equiv' => "Content-Type" }};
         title { shift @args };
         for ( $self->server->css ) {
             link { { rel is 'stylesheet', href is $_, type is "text/css", media is 'screen'} };

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list