On 2005-10-19, at 21:04, Alessandro Cauduro wrote:> I’m developing an international website that uses AJAX. In order to
> make the international characters appear correctly, I have set my
> default char set to UTF-8.
>
> The problem seems to be that Eclipse even though has the setting to
> use UTF-8 for encoding, doesn’t save it in the correct format. If I
> open up the .rhtml file under Notepad++ it encodes the file
> correctly and accents appear correctly.
A couple of days passed, so I don''t know if your problem is solved,
but here''s my observation. I''m running on Mac OS X, but maybe
the
Ruby stuff is similar on Windows (and you''re running Windows,
right?). It seems that Ruby (and so Rails) is using a variant of
UTF-8 called "No BOM" (no Byte Order Mark), which differs slightly
from standard UTF-8. If you''re curious, read this: <http://
www.unicode.org/faq/utf_bom.html#BOM>.
So check if your editor is supporting the "UTF-8 no-BOM" format. On
Mac OS X both UTF-8 forms are accepted in the BBEdit 8.x and TextMate
1.1.
--
Rafal Komorowski
komor-ee4meeAH724@public.gmane.org