[Lift] Re: Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-08 Thread David Pollak
Okay... I'll check in the change after Charles finishes the M5 build

On Tue, Sep 8, 2009 at 12:10 PM, jon  wrote:

>
> Aha,
>
> It is a header problem.  If the charset is specified in the content-
> type IE will pick the right encoding.  I added the following to my
> Boot (I already had LiftRules.useXhtmlMimeType = false):
>
>LiftRules.determineContentType = {
>case _ => "text/html; charset=utf-8"
> }
>
> Maybe this should be the default?
>
> Thanks!
>
> On Sep 8, 2:45 pm, David Pollak  wrote:
> > On Tue, Sep 8, 2009 at 10:37 AM, jon  wrote:
> >
> > > Ah, IE7 seems to be confused about the character encoding of the
> > > page.  When the encoding is set to "Auto Select" it chooses "Western
> > > European (Windows)" and the © displays as  ©.  If I turn off "Auto
> > > Select" and manually set to "Unicode (UTF-8)" it displays correctly.
> >
> > I wonder if this is a header issue... I'll put this on my to do list to
> > investigate.
> >
> > Although, I bet Tim has something to say about it.
> >
> >
> >
> >
> >
> >
> >
> > > I have LiftRules.early.append(makeUtf8) in Boot.  And the page
> > > includes ""
> >
> > > Any ideas?
> >
> > > Thanks,
> >
> > > Jon
> >
> > > On Sep 8, 9:26 am, David Pollak  wrote:
> > > > On Mon, Sep 7, 2009 at 11:38 PM, jon  wrote:
> >
> > > > > Hi,
> >
> > > > > I've noticed that some special char xml tags are being interpreted
> by
> > > > > lift rather than passing through to the browser.
> >
> > > > > source code in my template:
> > > > > 
> > > > >  &
> > > > >  ©
> > > > >  "
> > > > >  »
> > > > >  <
> > > > >  >
> > > > > 
> >
> > > > > result from curlhttp://localhost:8080/
> > > > >
> > > > >  &
> > > > >  ©
> > > > >  "
> > > > >  »
> > > > >  <
> > > > >  >
> > > > >
> >
> > > > > The rendered characters are problematic in IE7.
> >
> > > > Why?
> >
> > > > >  A fix or workaround
> > > > > would be much appreciated.
> >
> > > > The raw XHTML is valid.  Lift is yielding non-ASCII characters, but
> they
> > > are
> > > > UTF-8 encoded and should be correctly rendered on all browsers.  I
> have
> > > > never seen a problem with IE6 or IE7 (I have not tested in IE8)
> >
> > > > > Thanks,
> >
> > > > > - Jon
> >
> > > > --
> > > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > > Follow me:http://twitter.com/dpp
> > > > Git some:http://github.com/dpp
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-08 Thread jon

Aha,

It is a header problem.  If the charset is specified in the content-
type IE will pick the right encoding.  I added the following to my
Boot (I already had LiftRules.useXhtmlMimeType = false):

LiftRules.determineContentType = {
case _ => "text/html; charset=utf-8"
 }

Maybe this should be the default?

Thanks!

On Sep 8, 2:45 pm, David Pollak  wrote:
> On Tue, Sep 8, 2009 at 10:37 AM, jon  wrote:
>
> > Ah, IE7 seems to be confused about the character encoding of the
> > page.  When the encoding is set to "Auto Select" it chooses "Western
> > European (Windows)" and the © displays as  Â©.  If I turn off "Auto
> > Select" and manually set to "Unicode (UTF-8)" it displays correctly.
>
> I wonder if this is a header issue... I'll put this on my to do list to
> investigate.
>
> Although, I bet Tim has something to say about it.
>
>
>
>
>
>
>
> > I have LiftRules.early.append(makeUtf8) in Boot.  And the page
> > includes ""
>
> > Any ideas?
>
> > Thanks,
>
> > Jon
>
> > On Sep 8, 9:26 am, David Pollak  wrote:
> > > On Mon, Sep 7, 2009 at 11:38 PM, jon  wrote:
>
> > > > Hi,
>
> > > > I've noticed that some special char xml tags are being interpreted by
> > > > lift rather than passing through to the browser.
>
> > > > source code in my template:
> > > > 
> > > >          &
> > > >          ©
> > > >          "
> > > >          »
> > > >          <
> > > >          >
> > > > 
>
> > > > result from curlhttp://localhost:8080/
> > > >    
> > > >          &
> > > >          ©
> > > >          "
> > > >          »
> > > >          <
> > > >          >
> > > >    
>
> > > > The rendered characters are problematic in IE7.
>
> > > Why?
>
> > > >  A fix or workaround
> > > > would be much appreciated.
>
> > > The raw XHTML is valid.  Lift is yielding non-ASCII characters, but they
> > are
> > > UTF-8 encoded and should be correctly rendered on all browsers.  I have
> > > never seen a problem with IE6 or IE7 (I have not tested in IE8)
>
> > > > Thanks,
>
> > > > - Jon
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Git some:http://github.com/dpp
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-08 Thread David Pollak
On Tue, Sep 8, 2009 at 10:37 AM, jon  wrote:

>
> Ah, IE7 seems to be confused about the character encoding of the
> page.  When the encoding is set to "Auto Select" it chooses "Western
> European (Windows)" and the © displays as  ©.  If I turn off "Auto
> Select" and manually set to "Unicode (UTF-8)" it displays correctly.
>

I wonder if this is a header issue... I'll put this on my to do list to
investigate.

Although, I bet Tim has something to say about it.


>
> I have LiftRules.early.append(makeUtf8) in Boot.  And the page
> includes ""
>
> Any ideas?
>
> Thanks,
>
> Jon
>
>
> On Sep 8, 9:26 am, David Pollak  wrote:
> > On Mon, Sep 7, 2009 at 11:38 PM, jon  wrote:
> >
> > > Hi,
> >
> > > I've noticed that some special char xml tags are being interpreted by
> > > lift rather than passing through to the browser.
> >
> > > source code in my template:
> > > 
> > >  &
> > >  ©
> > >  "
> > >  »
> > >  <
> > >  >
> > > 
> >
> > > result from curlhttp://localhost:8080/
> > >
> > >  &
> > >  ©
> > >  "
> > >  »
> > >  <
> > >  >
> > >
> >
> > > The rendered characters are problematic in IE7.
> >
> > Why?
> >
> > >  A fix or workaround
> > > would be much appreciated.
> >
> > The raw XHTML is valid.  Lift is yielding non-ASCII characters, but they
> are
> > UTF-8 encoded and should be correctly rendered on all browsers.  I have
> > never seen a problem with IE6 or IE7 (I have not tested in IE8)
> >
> >
> >
> > > Thanks,
> >
> > > - Jon
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-08 Thread jon

Ah, IE7 seems to be confused about the character encoding of the
page.  When the encoding is set to "Auto Select" it chooses "Western
European (Windows)" and the © displays as  ©.  If I turn off "Auto
Select" and manually set to "Unicode (UTF-8)" it displays correctly.

I have LiftRules.early.append(makeUtf8) in Boot.  And the page
includes ""

Any ideas?

Thanks,

Jon


On Sep 8, 9:26 am, David Pollak  wrote:
> On Mon, Sep 7, 2009 at 11:38 PM, jon  wrote:
>
> > Hi,
>
> > I've noticed that some special char xml tags are being interpreted by
> > lift rather than passing through to the browser.
>
> > source code in my template:
> > 
> >          &
> >          ©
> >          "
> >          »
> >          <
> >          >
> > 
>
> > result from curlhttp://localhost:8080/
> >    
> >          &
> >          ©
> >          "
> >          »
> >          <
> >          >
> >    
>
> > The rendered characters are problematic in IE7.
>
> Why?
>
> >  A fix or workaround
> > would be much appreciated.
>
> The raw XHTML is valid.  Lift is yielding non-ASCII characters, but they are
> UTF-8 encoded and should be correctly rendered on all browsers.  I have
> never seen a problem with IE6 or IE7 (I have not tested in IE8)
>
>
>
> > Thanks,
>
> > - Jon
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Some XML special chars rendered by lift, others not in 1.1-SNAPSHOT

2009-09-08 Thread David Pollak
On Mon, Sep 7, 2009 at 11:38 PM, jon  wrote:

>
> Hi,
>
> I've noticed that some special char xml tags are being interpreted by
> lift rather than passing through to the browser.
>
> source code in my template:
> 
>  &
>  ©
>  "
>  »
>  <
>  >
> 
>
> result from curl http://localhost:8080/
>
>  &
>  ©
>  "
>  »
>  <
>  >
>
>
> The rendered characters are problematic in IE7.


Why?


>  A fix or workaround
> would be much appreciated.
>

The raw XHTML is valid.  Lift is yielding non-ASCII characters, but they are
UTF-8 encoded and should be correctly rendered on all browsers.  I have
never seen a problem with IE6 or IE7 (I have not tested in IE8)


>
> Thanks,
>
> - Jon
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---