Dani Dani wrote in post #956895: > William Denniss wrote in post #956507: >> >> Does your text editor support UTF-8? Are you saving the file as >> UTF-8? I guess the file encoding and comment specified in the "magic >> comment" must match. >> >> jEdit is a text editor I know of with very good encoding support. >> >> Will > > Thank you for your response. > I don't understand exactly what you mean by 'editor support UTF-8?', I > can > type those characters ä,ü,...,
Yes, but what encoding are you saving the file in? You should be saving the file with the UTF-8 encoding. Your editor should provide a feature to set the encoding. If it does not, get a different editor. > and how is it related to the problem I > have with the program ?. Simple: if the encoding is different from what Rails expects, then the characters will come out incorrectly. An encoding is simply a mapping that says "when you see 0x0041, that represents 'A'." Files are just stored as byte sequences, so both the reader and writer have to know what the encoding is in order to make sense out of the file. If this is hard to understand, you need to review some basic information about text encodings. > Would appreciate any help. > > Dani Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en.

