> but when we're showing things in the UI we need to
> encode it as UTF-8 before sending it to the browser?

Everithing must be set as utf-8:

1) The files need to be saved as utf-8. Even the .js files
Its not the same saving a txt file using notepad, that using an editor
that saves the file as real utf-8 files, that can include (or exclude)
the Unicode Signature (BOM)

2) Your html must have the proper <meta> tag declaration
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

3) You server must be serving the files as utf-8
Sometimes your server is not configured to serve utf-8 files by
defaul, so you need to force it to deliver utf-8 stuff

4) You database must be set as uft-8 as well
Same as the server, some times you need to force it, otherway you are
fucked

When one of the 4 things its not doing his job right, real nighmares
can happend, and you will end up using a bunch of encoding/deconding
functions that will drive you crazy. Only when you have all the combo
working in utf-8 you will apreciate his goodness.

Are you working with php, asp, ruby?
I can help you if php is the case, email me at [EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to