Walter
On Apr 19, 2012, at 9:13 AM, Edward Nygma wrote:
> I am having this symbol returned in the browser: �
>
> When replacing the '$' in string literal to '£' in my code.
>
> --
> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
> To post to this group, send email to prototype-s...@googlegroups.com.
> To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
> My server is running locally on XAMPP and as far as I know is sending
> it to my browser in UTF-8
This is a potential problem source. Can you locate the php.ini file, and see precisely what value is set for the default_charset value? By default, this is set to empty, and that kicks the can up to Apache, which may not be configured to send Unicode by default.
>
> When I view source as shown below UTF-8 encoding is sent to the
> browser, however the £ symbol is still unrecognised.
What do you see if you use a static HTML file, viewed locally (file / open), with the charset mime tag set to utf-8 -- instead of viewing from your server?
Walter
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
Walter
I've encountered similar issues trying to resolve accented characters for spanish translations of my web sites. The quickest way I've found to resolve character set issues was to replace character codes with the html entity for that symbol. Having said that, try using £ instead. |