Is your code saved in UTF-8, and does your server send it under a Content-type
header including that charset? yourString.gsub('$','£') should just work as
long as your surrounding page is Unicode.
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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.