Peter,

My understanding is that JavaScript strings must be ASCII or escaped to
Unicode: \u4455 (or whatever the unicode character is for degrees).

Thanks,

David

On Mon, Dec 7, 2009 at 7:14 PM, Peter Robinett <pe...@bubblefoundry.com>wrote:

> Hi all,
>
> I just discovered that XHTML pages do not support all the character
> entity references HTML does[1]. In my case that means switching from
> &deg; to ° in my Javascript file. This is fine except that I am now
> getting a garbled character. My file is encoded in UTF-8 and Maven is
> using UTF-8[2], so I'm stumped about why it is happening. I could just
> switch to an HTML doctype but I'm interested in understanding
> everything that's happening here. Any suggestions?
>
> Peter
>
> [1]:
> http://www.bubblefoundry.com/blog/2009/12/html-and-xml-character-encoding-gotchas-in-javascript/
> [2]:
> http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


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

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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.


Reply via email to